public interface CheckpointManager
Checkpoint
to some
implementation-specific location.Modifier and Type | Method and Description |
---|---|
java.util.Map<TaskName,java.lang.Integer> |
readChangeLogPartitionMapping()
Read the taskName to partition mapping that is being maintained by this CheckpointManager
|
Checkpoint |
readLastCheckpoint(TaskName taskName)
Returns the last recorded checkpoint for a specified taskName.
|
void |
register(TaskName taskName)
Registers this manager to write checkpoints of a specific Samza stream partition.
|
void |
start() |
void |
stop() |
void |
writeChangeLogPartitionMapping(java.util.Map<TaskName,java.lang.Integer> mapping)
Write the taskName to partition mapping that is being maintained by this CheckpointManager
|
void |
writeCheckpoint(TaskName taskName,
Checkpoint checkpoint)
Writes a checkpoint based on the current state of a Samza stream partition.
|
void start()
void register(TaskName taskName)
taskName
- Specific Samza taskName of which to write checkpoints for.void writeCheckpoint(TaskName taskName, Checkpoint checkpoint)
taskName
- Specific Samza taskName of which to write a checkpoint of.checkpoint
- Reference to a Checkpoint object to store offset data in.Checkpoint readLastCheckpoint(TaskName taskName)
taskName
- Specific Samza taskName for which to get the last checkpoint of.java.util.Map<TaskName,java.lang.Integer> readChangeLogPartitionMapping()
void writeChangeLogPartitionMapping(java.util.Map<TaskName,java.lang.Integer> mapping)
mapping
- Each TaskName's partition within the changelogvoid stop()