public interface CheckpointManager
Checkpoint
to some
implementation-specific location.Modifier and Type | Method and Description |
---|---|
default void |
clearCheckpoints()
Clear the checkpoints in the checkpoint stream.
|
default void |
createResources()
Creates checkpoint stream.
|
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()
Perform startup operations.
|
void |
stop()
Perform teardown operations for the Manager.
|
void |
writeCheckpoint(TaskName taskName,
Checkpoint checkpoint)
Writes a checkpoint based on the current state of a Samza stream partition.
|
default void createResources()
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()
default void clearCheckpoints()