public interface CheckpointPolicyAlgorithm
extends com.ibm.batch.spi.CheckpointPolicyAlgorithm
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAlgorithmName()
Returns the name of the checkpoint algorithm
|
int |
getRecommendedTimeOutValue()
Called by the Batch Execution Environment to determine the timeout for global
transactions that it manages for the batch loop.
|
boolean |
initialize(CheckpointAlgorithm ckpt)
Called by the Batch Execution Environment to allow a Checkpoint algorithm to retrieve
properties defined for the algorithm in xJCL (eg: interval
for committing global transactions for a time base
checkpoint algorithm) and to do any other initialization
tasks.
|
boolean |
ShouldCheckpointBeExecuted()
Called by the Batch Execution Environment on each iteration of the batch loop to
determine if the global transaction under which the
processJobStep method is invoked should be committed or not.
|
void |
startCheckpoint()
Called by the Batch Execution Environment when it starts a global transaction.
|
void |
stopCheckpoint()
Called by the Batch Execution Environment when it commits a global transaction.
|
boolean initialize(CheckpointAlgorithm ckpt)
initialize in interface com.ibm.batch.spi.CheckpointPolicyAlgorithmckpt - the CheckpointAlgorithm information that is
specified in xJCL.java.lang.String getAlgorithmName()
getAlgorithmName in interface com.ibm.batch.spi.CheckpointPolicyAlgorithmboolean ShouldCheckpointBeExecuted()
ShouldCheckpointBeExecuted in interface com.ibm.batch.spi.CheckpointPolicyAlgorithmint getRecommendedTimeOutValue()
getRecommendedTimeOutValue in interface com.ibm.batch.spi.CheckpointPolicyAlgorithmvoid startCheckpoint()
startCheckpoint in interface com.ibm.batch.spi.CheckpointPolicyAlgorithmvoid stopCheckpoint()
stopCheckpoint in interface com.ibm.batch.spi.CheckpointPolicyAlgorithm