Package org.apache.bookkeeper.bookie
Interface CheckpointSource
-
- All Known Implementing Classes:
CheckpointSourceList
,Journal
public interface CheckpointSource
Interface to communicate checkpoint progress.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
CheckpointSource.Checkpoint
A checkpoint presented a time point.
-
Field Summary
Fields Modifier and Type Field Description static CheckpointSource
DEFAULT
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
checkpointComplete(CheckpointSource.Checkpoint checkpoint, boolean compact)
Tell checkpoint source that the checkpoint is completed.CheckpointSource.Checkpoint
newCheckpoint()
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. Ifcompact
is 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
-
-