Class ChunkWriter

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

    @Dependent
    public class ChunkWriter
    extends javax.batch.api.chunk.AbstractItemWriter
    Bulk import Chunk implementation - the Writer.
    • Field Detail

      • cosClient

        com.ibm.cloud.objectstorage.services.s3.AmazonS3 cosClient
      • isValidationOn

        boolean isValidationOn
      • stepCtx

        @Inject
        javax.batch.runtime.context.StepContext stepCtx
      • 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 IBM COS or S3 End point URL.
      • cosLocation

        @Inject
        String cosLocation
        The IBM COS or S3 location.
      • cosOperationOutcomesBucketName

        @Inject
        String cosOperationOutcomesBucketName
        The IBM COS or S3 bucket name for import OperationOutcomes.
      • cosCredentialIbm

        @Inject
        String cosCredentialIbm
        If use IBM credential or S3 secret keys.
      • fhirTenant

        @Inject
        String fhirTenant
        Fhir tenant id.
      • fhirDatastoreId

        @Inject
        String fhirDatastoreId
        Fhir data store id.
      • importPartitionResourceType

        @Inject
        String importPartitionResourceType
        Fhir resource type to process.
      • fhirValidation

        @Inject
        String fhirValidation
        If validate FHIR resources.
    • Constructor Detail

      • ChunkWriter

        public ChunkWriter()
    • Method Detail

      • writeItems

        public void writeItems​(List<Object> arg0)
                        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