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 interval
begins (before the next chunk transaction 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 is taken (after
the chunk transaction is committed).
|
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 CheckpointAlgorithm
Exception
- (or subclass) if an error occurs.public void beginCheckpoint() throws Exception
beginCheckpoint
in interface CheckpointAlgorithm
Exception
- (or subclass) if an error occurs.public abstract boolean isReadyToCheckpoint() throws Exception
isReadyToCheckpoint
in interface CheckpointAlgorithm
Exception
- (or subclass) if an error occurs.public void endCheckpoint() throws Exception
endCheckpoint
in interface CheckpointAlgorithm
Exception
- (or subclass) if an error occurs.Copyright © 2019 JBoss by Red Hat. All rights reserved.