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 Type
    Method
    Description
    void
    delete(String deploymentName)
    Removes a deployment's checkpoint.
    load(String deploymentName)
    The checkpoint for a deployment, if one was saved.
    void
    save(Checkpoint checkpoint)
    Saves (replaces) the checkpoint of its deployment.
  • Method Details

    • load

      Optional<Checkpoint> load(String deploymentName)
      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

      void save(Checkpoint checkpoint)
      Saves (replaces) the checkpoint of its deployment.
      Parameters:
      checkpoint - the checkpoint
    • delete

      void delete(String deploymentName)
      Removes a deployment's checkpoint.
      Parameters:
      deploymentName - the deployment name