Package org.apache.bookkeeper.bookie
Class CheckpointSourceList
java.lang.Object
org.apache.bookkeeper.bookie.CheckpointSourceList
- All Implemented Interfaces:
CheckpointSource
A
CheckpointSourceList manages a list of CheckpointSources.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.bookkeeper.bookie.CheckpointSource
CheckpointSource.Checkpoint -
Field Summary
Fields inherited from interface org.apache.bookkeeper.bookie.CheckpointSource
DEFAULT -
Constructor Summary
ConstructorsConstructorDescriptionCheckpointSourceList(List<? extends CheckpointSource> checkpointSourcesList) -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckpointComplete(CheckpointSource.Checkpoint checkpoint, boolean compact) Tell checkpoint source that the checkpoint is completed.Request a new a checkpoint.
-
Constructor Details
-
CheckpointSourceList
-
-
Method Details
-
newCheckpoint
Description copied from interface:CheckpointSourceRequest a new a checkpoint.- Specified by:
newCheckpointin interfaceCheckpointSource- Returns:
- checkpoint.
-
checkpointComplete
public void checkpointComplete(CheckpointSource.Checkpoint checkpoint, boolean compact) throws IOException Description copied from interface:CheckpointSourceTell checkpoint source that the checkpoint is completed. Ifcompactis true, the implementation could compact to reduce size of data containing old checkpoints.- Specified by:
checkpointCompletein interfaceCheckpointSource- Parameters:
checkpoint- The checkpoint that has been completedcompact- Flag to compact old checkpoints.- Throws:
IOException
-