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
    Modifier and Type
    Field
    Description
    static final long
     
  • Method Summary

    Modifier and Type
    Method
    Description
    checkpointIDToName(long checkpointId)
    Get the name in external storage from checkpoint id.
    long
    Get the checkpoint id from name.
  • Field Details

  • Method Details

    • 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_ID when parsing failed.