Class CheckPointAlgorithm
- java.lang.Object
-
- com.ibm.fhir.jbatch.bulkdata.export.common.CheckPointAlgorithm
-
- All Implemented Interfaces:
javax.batch.api.chunk.CheckpointAlgorithm
@Dependent public class CheckPointAlgorithm extends Object implements javax.batch.api.chunk.CheckpointAlgorithm
Bulk export Chunk implementation - custom checkpoint algorithm.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) String
cosBucketFileMaxResources
The file resources number limit when exporting to multiple COS files.(package private) String
cosBucketFileMaxSize
The file size limit (in bytes) when exporting to multiple COS files.(package private) javax.batch.runtime.context.StepContext
stepCtx
-
Constructor Summary
Constructors Constructor Description CheckPointAlgorithm()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beginCheckpoint()
int
checkpointTimeout()
void
endCheckpoint()
boolean
isReadyToCheckpoint()
-
-
-
Field Detail
-
stepCtx
@Inject javax.batch.runtime.context.StepContext stepCtx
-
cosBucketFileMaxResources
@Inject String cosBucketFileMaxResources
The file resources number limit when exporting to multiple COS files.
-
cosBucketFileMaxSize
@Inject String cosBucketFileMaxSize
The file size limit (in bytes) when exporting to multiple COS files.
-
-
Method Detail
-
checkpointTimeout
public int checkpointTimeout()
- Specified by:
checkpointTimeout
in interfacejavax.batch.api.chunk.CheckpointAlgorithm
-
endCheckpoint
public void endCheckpoint()
- Specified by:
endCheckpoint
in interfacejavax.batch.api.chunk.CheckpointAlgorithm
-
beginCheckpoint
public void beginCheckpoint()
- Specified by:
beginCheckpoint
in interfacejavax.batch.api.chunk.CheckpointAlgorithm
-
isReadyToCheckpoint
public boolean isReadyToCheckpoint()
- Specified by:
isReadyToCheckpoint
in interfacejavax.batch.api.chunk.CheckpointAlgorithm
-
-