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
ACheckpointSourceList
manages a list ofCheckpointSource
s.
-
-
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 void
checkpointComplete(CheckpointSource.Checkpoint checkpoint, boolean compact)
Tell checkpoint source that the checkpoint is completed.CheckpointSource.Checkpoint
newCheckpoint()
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:CheckpointSource
Request a new a checkpoint.- Specified by:
newCheckpoint
in interfaceCheckpointSource
- Returns:
- checkpoint.
-
checkpointComplete
public void checkpointComplete(CheckpointSource.Checkpoint checkpoint, boolean compact) throws java.io.IOException
Description copied from interface:CheckpointSource
Tell checkpoint source that the checkpoint is completed. Ifcompact
is true, the implementation could compact to reduce size of data containing old checkpoints.- Specified by:
checkpointComplete
in interfaceCheckpointSource
- Parameters:
checkpoint
- The checkpoint that has been completedcompact
- Flag to compact old checkpoints.- Throws:
java.io.IOException
-
-