| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | beginCheckpoint()
Implements jakarta. Override this method for the CheckpointAlgorithm to do something before a checkpoint interval begins (before the next chunk transaction begins). |
| public int | Returns: the timeout interval (expressed in seconds) to use for the next checkpoint intervalImplements jakarta. Override this method if the CheckpointAlgorithm establishes a checkpoint timeout. |
| public void | endCheckpoint()
Implements jakarta. Override this method for the CheckpointAlgorithm to do something after a checkpoint is taken (after the chunk transaction is committed). |
| public abstract boolean | Returns: boolean indicating whether or not to checkpoint now.Redeclares jakarta. Implement logic in this method to decide if a checkpoint should be taken now. |
| AbstractCheckpointAlgorithm | back to summary |
|---|---|
| public AbstractCheckpointAlgorithm() | |
| beginCheckpoint | back to summary |
|---|---|
| public void beginCheckpoint() throws Exception Implements jakarta. Override this method for the CheckpointAlgorithm to do something before a checkpoint interval begins (before the next chunk transaction begins). The default implementation does nothing. | |
| checkpointTimeout | back to summary |
|---|---|
| public int checkpointTimeout() throws Exception Implements jakarta. Override this method if the CheckpointAlgorithm establishes a checkpoint timeout. The default implementation returns 0, which means the maximum permissible timeout allowed by the runtime environment. | |
| endCheckpoint | back to summary |
|---|---|
| public void endCheckpoint() throws Exception Implements jakarta. Override this method for the CheckpointAlgorithm to do something after a checkpoint is taken (after the chunk transaction is committed). The default implementation does nothing. | |
| isReadyToCheckpoint | back to summary |
|---|---|
| public abstract boolean isReadyToCheckpoint() throws Exception Redeclares jakarta. Implement logic in this method to decide if a checkpoint should be taken now. | |