Class ChunkWriter

  • All Implemented Interfaces:
    javax.batch.api.chunk.ItemWriter

    @Dependent
    public class ChunkWriter
    extends javax.batch.api.chunk.AbstractItemWriter
    Bulk export Chunk implementation - the Writer. TODO: move to common?
    • Field Detail

      • cosApiKeyProperty

        @Inject
        String cosApiKeyProperty
        The IBM COS API key or S3 access key.
      • cosSrvinstId

        @Inject
        String cosSrvinstId
        The IBM COS service instance id or s3 secret key.
      • cosEndpointUrl

        @Inject
        String cosEndpointUrl
        The Cos End point URL.
      • cosLocation

        @Inject
        String cosLocation
        The Cos End point location.
      • cosBucketName

        @Inject
        String cosBucketName
        The Cos bucket name.
      • cosBucketPathPrefix

        @Inject
        String cosBucketPathPrefix
        The Cos bucket path prefix.
      • cosCredentialIbm

        @Inject
        String cosCredentialIbm
        If use IBM credential or Amazon secret keys.
      • fhirResourceType

        @Inject
        String fhirResourceType
        Fhir resource type to process.
      • fhirExportFormat

        @Inject
        String fhirExportFormat
        Fhir export format.
      • stepCtx

        @Inject
        javax.batch.runtime.context.StepContext stepCtx
      • jobContext

        @Inject
        javax.batch.runtime.context.JobContext jobContext
    • Constructor Detail

      • ChunkWriter

        public ChunkWriter()
        See Also:
        AbstractItemWriter()
    • Method Detail

      • writeItems

        public void writeItems​(List<Object> resourceLists)
                        throws Exception
        Specified by:
        writeItems in interface javax.batch.api.chunk.ItemWriter
        Specified by:
        writeItems in class javax.batch.api.chunk.AbstractItemWriter
        Throws:
        Exception
      • open

        public void open​(Serializable checkpoint)
                  throws Exception
        Specified by:
        open in interface javax.batch.api.chunk.ItemWriter
        Overrides:
        open in class javax.batch.api.chunk.AbstractItemWriter
        Throws:
        Exception
      • close

        public void close()
                   throws Exception
        Specified by:
        close in interface javax.batch.api.chunk.ItemWriter
        Overrides:
        close in class javax.batch.api.chunk.AbstractItemWriter
        Throws:
        Exception