|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CheckpointPolicyAlgorithm
CheckPointPolicy algorithms determine when a Batch Execution Environment commits the global transaction when it is invoking the Batch Step Bean by calling the Step Bean's processJobStep method in a batch loop. This SPI allows for the creation of customized checkpoint algorithms which can be applied to particular batch jobs when they are submitted to the job scheduler.
Method Summary | |
---|---|
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. |
Method Detail |
---|
boolean initialize(CheckpointAlgorithm ckpt)
initialize
in interface com.ibm.batch.spi.CheckpointPolicyAlgorithm
ckpt
- the CheckpointAlgorithm information that is
specified in xJCL.
java.lang.String getAlgorithmName()
getAlgorithmName
in interface com.ibm.batch.spi.CheckpointPolicyAlgorithm
boolean ShouldCheckpointBeExecuted()
ShouldCheckpointBeExecuted
in interface com.ibm.batch.spi.CheckpointPolicyAlgorithm
int getRecommendedTimeOutValue()
getRecommendedTimeOutValue
in interface com.ibm.batch.spi.CheckpointPolicyAlgorithm
void startCheckpoint()
startCheckpoint
in interface com.ibm.batch.spi.CheckpointPolicyAlgorithm
void stopCheckpoint()
stopCheckpoint
in interface com.ibm.batch.spi.CheckpointPolicyAlgorithm
|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |