Package org.apache.bookkeeper.bookie
Class CheckpointSourceList
- java.lang.Object
-
- org.apache.bookkeeper.bookie.CheckpointSourceList
-
- All Implemented Interfaces:
CheckpointSource
public class CheckpointSourceList extends java.lang.Object implements CheckpointSource
ACheckpointSourceListmanages a list ofCheckpointSources.
-
-
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
Constructors Constructor Description CheckpointSourceList(java.util.List<? extends CheckpointSource> checkpointSourcesList)
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Constructor Detail
-
CheckpointSourceList
public CheckpointSourceList(java.util.List<? extends CheckpointSource> checkpointSourcesList)
-
-
Method Detail
-
newCheckpoint
public CheckpointSource.Checkpoint 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 java.io.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:
java.io.IOException
-
-