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.AbstractItemWriter
Bulk export Chunk implementation - the Writer. TODO: move to common?
-
-
Field Summary
Fields Modifier and Type Field Description (package private) String
cosApiKeyProperty
The IBM COS API key or S3 access key.(package private) String
cosBucketName
The Cos bucket name.(package private) String
cosBucketPathPrefix
The Cos bucket path prefix.(package private) String
cosCredentialIbm
If use IBM credential or Amazon secret keys.(package private) String
cosEndpointUrl
The Cos End point URL.(package private) String
cosLocation
The Cos End point location.(package private) String
cosSrvinstId
The IBM COS service instance id or s3 secret key.(package private) String
fhirExportFormat
Fhir export format.(package private) String
fhirResourceType
Fhir resource type to process.(package private) javax.batch.runtime.context.JobContext
jobContext
(package private) javax.batch.runtime.context.StepContext
stepCtx
-
Constructor Summary
Constructors Constructor Description ChunkWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
open(Serializable checkpoint)
void
writeItems(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:
writeItems
in interfacejavax.batch.api.chunk.ItemWriter
- Specified by:
writeItems
in classjavax.batch.api.chunk.AbstractItemWriter
- Throws:
Exception
-
open
public void open(Serializable checkpoint) throws Exception
- Specified by:
open
in interfacejavax.batch.api.chunk.ItemWriter
- Overrides:
open
in classjavax.batch.api.chunk.AbstractItemWriter
- Throws:
Exception
-
-