Class ChunkWriter
- java.lang.Object
-
- javax.batch.api.chunk.AbstractItemWriter
-
- com.ibm.fhir.jbatch.bulkdata.export.system.ChunkWriter
-
- All Implemented Interfaces:
javax.batch.api.chunk.ItemWriter
@Dependent public class ChunkWriter extends javax.batch.api.chunk.AbstractItemWriterBulk export Chunk implementation - the Writer. TODO: move to common?
-
-
Field Summary
Fields Modifier and Type Field Description (package private) StringcosApiKeyPropertyThe IBM COS API key or S3 access key.(package private) StringcosBucketNameThe Cos bucket name.(package private) StringcosBucketPathPrefixThe Cos bucket path prefix.(package private) StringcosCredentialIbmIf use IBM credential or Amazon secret keys.(package private) StringcosEndpointUrlThe Cos End point URL.(package private) StringcosLocationThe Cos End point location.(package private) StringcosSrvinstIdThe IBM COS service instance id or s3 secret key.(package private) StringfhirExportFormatFhir export format.(package private) StringfhirResourceTypeFhir resource type to process.(package private) javax.batch.runtime.context.JobContextjobContext(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 voidclose()voidopen(Serializable checkpoint)voidwriteItems(List<Object> resourceLists)
-
-
-
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
-
-
Method Detail
-
writeItems
public void writeItems(List<Object> resourceLists) 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
-
-