Interface CheckpointStoreUtil
- All Known Implementing Classes:
ZooKeeperCheckpointStoreUtil
public interface CheckpointStoreUtil
CompletedCheckpointStore utility interfaces. For example, convert a name(e.g. ZooKeeper
path, key name in Kubernetes ConfigMap) to checkpoint id in Long format, or vice versa.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncheckpointIDToName(long checkpointId) Get the name in external storage from checkpoint id.longnameToCheckpointID(String name) Get the checkpoint id from name.
-
Field Details
-
INVALID_CHECKPOINT_ID
static final long INVALID_CHECKPOINT_ID- See Also:
-
-
Method Details
-
checkpointIDToName
Get the name in external storage from checkpoint id.- Parameters:
checkpointId- checkpoint id- Returns:
- Key name in ConfigMap or child path name in ZooKeeper
-
nameToCheckpointID
Get the checkpoint id from name.- Parameters:
name- Key name in ConfigMap or child path name in ZooKeeper- Returns:
- parsed checkpoint id. Or
INVALID_CHECKPOINT_IDwhen parsing failed.
-