Interface CheckpointStoreUtil
-
- All Known Implementing Classes:
ZooKeeperCheckpointStoreUtil
public interface CheckpointStoreUtilCompletedCheckpointStoreutility interfaces. For example, convert a name(e.g. ZooKeeper path, key name in Kubernetes ConfigMap) to checkpoint id inLongformat, or vice versa.
-
-
Field Summary
Fields Modifier and Type Field Description static longINVALID_CHECKPOINT_ID
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringcheckpointIDToName(long checkpointId)Get the name in external storage from checkpoint id.longnameToCheckpointID(String name)Get the checkpoint id from name.
-
-
-
Field Detail
-
INVALID_CHECKPOINT_ID
static final long INVALID_CHECKPOINT_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
checkpointIDToName
String checkpointIDToName(long checkpointId)
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
long nameToCheckpointID(String name)
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.
-
-