Package org.apache.bookkeeper.bookie
Interface CheckpointSource
-
- All Known Implementing Classes:
CheckpointSourceList,Journal
public interface CheckpointSourceInterface to communicate checkpoint progress.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceCheckpointSource.CheckpointA checkpoint presented a time point.
-
Field Summary
Fields Modifier and Type Field Description static CheckpointSourceDEFAULT
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcheckpointComplete(CheckpointSource.Checkpoint checkpoint, boolean compact)Tell checkpoint source that the checkpoint is completed.CheckpointSource.CheckpointnewCheckpoint()Request a new a checkpoint.
-
-
-
Field Detail
-
DEFAULT
static final CheckpointSource DEFAULT
-
-
Method Detail
-
newCheckpoint
CheckpointSource.Checkpoint newCheckpoint()
Request a new a checkpoint.- Returns:
- checkpoint.
-
checkpointComplete
void checkpointComplete(CheckpointSource.Checkpoint checkpoint, boolean compact) throws java.io.IOException
Tell checkpoint source that the checkpoint is completed. Ifcompactis true, the implementation could compact to reduce size of data containing old checkpoints.- Parameters:
checkpoint- The checkpoint that has been completedcompact- Flag to compact old checkpoints.- Throws:
java.io.IOException
-
-