Class InMemoryCheckpointStore
java.lang.Object
com.eqixiac.equinix.design.plan.InMemoryCheckpointStore
- All Implemented Interfaces:
CheckpointStore
A
CheckpointStore held in memory: survives an aborted run, not a crashed JVM. Thread-safe.-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
InMemoryCheckpointStore
public InMemoryCheckpointStore()Creates an empty store.
-
-
Method Details
-
load
Description copied from interface:CheckpointStoreThe 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.- Specified by:
loadin interfaceCheckpointStore- Parameters:
deploymentName- the plan's deployment name- Returns:
- the checkpoint, or empty
-
save
Description copied from interface:CheckpointStoreSaves (replaces) the checkpoint of its deployment.- Specified by:
savein interfaceCheckpointStore- Parameters:
checkpoint- the checkpoint
-
delete
Description copied from interface:CheckpointStoreRemoves a deployment's checkpoint.- Specified by:
deletein interfaceCheckpointStore- Parameters:
deploymentName- the deployment name
-