|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.batch.api.chunk.AbstractCheckpointAlgorithm
public abstract class AbstractCheckpointAlgorithm
The AbstractCheckpointAlgorithm provides default implementations of less commonly implemented methods.
| Constructor Summary | |
|---|---|
AbstractCheckpointAlgorithm()
|
|
| Method Summary | |
|---|---|
void |
beginCheckpoint()
Override this method for the CheckpointAlgorithm to do something before a checkpoint begins. |
int |
checkpointTimeout()
Override this method if the CheckpointAlgorithm establishes a checkpoint timeout. |
void |
endCheckpoint()
Override this method for the CheckpointAlgorithm to do something after a checkpoint ends. |
abstract boolean |
isReadyToCheckpoint()
Implement logic in this method to decide if a checkpoint should be taken now. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractCheckpointAlgorithm()
| Method Detail |
|---|
public int checkpointTimeout()
throws Exception
checkpointTimeout in interface CheckpointAlgorithmException - (or subclass) if an error occurs.
public void beginCheckpoint()
throws Exception
beginCheckpoint in interface CheckpointAlgorithmException - (or subclass) if an error occurs.
public abstract boolean isReadyToCheckpoint()
throws Exception
isReadyToCheckpoint in interface CheckpointAlgorithmException - (or subclass) if an error occurs.
public void endCheckpoint()
throws Exception
endCheckpoint in interface CheckpointAlgorithmException - (or subclass) if an error occurs.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
© Copyright IBM Corp. 2013
Licensed under the Apache License, Version 2.0