public interface CheckpointManager
Checkpoint to some
implementation-specific location.| Modifier and Type | Method and Description |
|---|---|
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 |
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.void stop()