Enum ZooKeeperExecutionPlanStoreUtil

java.lang.Object
java.lang.Enum<ZooKeeperExecutionPlanStoreUtil>
org.apache.flink.runtime.jobmanager.ZooKeeperExecutionPlanStoreUtil
All Implemented Interfaces:
Serializable, Comparable<ZooKeeperExecutionPlanStoreUtil>, ExecutionPlanStoreUtil

public enum ZooKeeperExecutionPlanStoreUtil extends Enum<ZooKeeperExecutionPlanStoreUtil> implements ExecutionPlanStoreUtil
Singleton ExecutionPlanStoreUtil implementation for ZooKeeper.
  • Enum Constant Details

  • Method Details

    • values

      public static ZooKeeperExecutionPlanStoreUtil[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ZooKeeperExecutionPlanStoreUtil valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • jobIDToName

      public String jobIDToName(org.apache.flink.api.common.JobID jobId)
      Description copied from interface: ExecutionPlanStoreUtil
      Get the name in external storage from job id.
      Specified by:
      jobIDToName in interface ExecutionPlanStoreUtil
      Parameters:
      jobId - job id
      Returns:
      Key name in ConfigMap or child path name in ZooKeeper
    • nameToJobID

      public org.apache.flink.api.common.JobID nameToJobID(String name)
      Description copied from interface: ExecutionPlanStoreUtil
      Get the job id from name.
      Specified by:
      nameToJobID in interface ExecutionPlanStoreUtil
      Parameters:
      name - Key name in ConfigMap or child path name in ZooKeeper
      Returns:
      parsed job id.