public abstract class AbstractCheckpointAlgorithm extends Object implements CheckpointAlgorithm
| Constructor and Description |
|---|
AbstractCheckpointAlgorithm() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.