Class ChunkWriter
- java.lang.Object
-
- javax.batch.api.chunk.AbstractItemWriter
-
- com.ibm.fhir.jbatch.bulkdata.load.ChunkWriter
-
- All Implemented Interfaces:
javax.batch.api.chunk.ItemWriter
@Dependent public class ChunkWriter extends javax.batch.api.chunk.AbstractItemWriterBulk import Chunk implementation - the Writer.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) StringcosApiKeyPropertyThe IBM COS API key or S3 access key.(package private) com.ibm.cloud.objectstorage.services.s3.AmazonS3cosClient(package private) StringcosCredentialIbmIf use IBM credential or S3 secret keys.(package private) StringcosEndpointUrlThe IBM COS or S3 End point URL.(package private) StringcosLocationThe IBM COS or S3 location.(package private) StringcosOperationOutcomesBucketNameThe IBM COS or S3 bucket name for import OperationOutcomes.(package private) StringcosSrvinstIdThe IBM COS service instance id or S3 secret key.(package private) StringfhirDatastoreIdFhir data store id.(package private) StringfhirTenantTenant id.(package private) StringfhirValidationIf validate FHIR resources.(package private) StringimportPartitionResourceTypeResource Type to process.(package private) StringincomingUrl(package private) booleanisValidationOn(package private) javax.batch.runtime.context.StepContextstepCtx
-
Constructor Summary
Constructors Constructor Description ChunkWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidopen(Serializable checkpoint)voidwriteItems(List<Object> arg0)
-
-
-
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
Tenant id.
-
fhirDatastoreId
@Inject String fhirDatastoreId
Fhir data store id.
-
importPartitionResourceType
@Inject String importPartitionResourceType
Resource Type to process.
-
fhirValidation
@Inject String fhirValidation
If validate FHIR resources.
-
incomingUrl
@Inject String incomingUrl
-
-
Method Detail
-
writeItems
public void writeItems(List<Object> arg0) throws Exception
- Specified by:
writeItemsin interfacejavax.batch.api.chunk.ItemWriter- Specified by:
writeItemsin classjavax.batch.api.chunk.AbstractItemWriter- Throws:
Exception
-
open
public void open(Serializable checkpoint) throws Exception
- Specified by:
openin interfacejavax.batch.api.chunk.ItemWriter- Overrides:
openin classjavax.batch.api.chunk.AbstractItemWriter- Throws:
Exception
-
-