Interface CheckpointStore
- All Known Implementing Classes:
FileCheckpointStore, InMemoryCheckpointStore
public interface CheckpointStore
Where reconcile keeps its
Checkpoints. Implementations must make save(Checkpoint) durable
before returning: reconcile writes after every step and relies on the last write surviving a crash.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves a deployment's checkpoint.The checkpoint for a deployment, if one was saved.voidsave(Checkpoint checkpoint) Saves (replaces) the checkpoint of its deployment.
-
Method Details
-
load
The checkpoint for a deployment, if one was saved. Checkpoints are keyed by deployment name, not plan id, so an edited plan (a new plan id) still sees what earlier runs created.- Parameters:
deploymentName- the plan's deployment name- Returns:
- the checkpoint, or empty
-
save
Saves (replaces) the checkpoint of its deployment.- Parameters:
checkpoint- the checkpoint
-
delete
Removes a deployment's checkpoint.- Parameters:
deploymentName- the deployment name
-