Enum KubernetesExecutionPlanStoreUtil

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

public enum KubernetesExecutionPlanStoreUtil extends Enum<KubernetesExecutionPlanStoreUtil> implements org.apache.flink.runtime.jobmanager.ExecutionPlanStoreUtil
Singleton ExecutionPlanStoreUtil implementation for Kubernetes.
  • Enum Constant Details

  • Method Details

    • values

      public static KubernetesExecutionPlanStoreUtil[] 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 KubernetesExecutionPlanStoreUtil 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
    • nameToJobID

      public org.apache.flink.api.common.JobID nameToJobID(String key)
      Convert a key in ConfigMap to JobID. The key is stored with prefix Constants.EXECUTION_PLAN_STORE_KEY_PREFIX.
      Specified by:
      nameToJobID in interface org.apache.flink.runtime.jobmanager.ExecutionPlanStoreUtil
      Parameters:
      key - execution plan key in ConfigMap.
      Returns:
      the parsed JobID.
    • jobIDToName

      public String jobIDToName(org.apache.flink.api.common.JobID jobID)
      Convert a JobID to config map key. We will add prefix Constants.EXECUTION_PLAN_STORE_KEY_PREFIX.
      Specified by:
      jobIDToName in interface org.apache.flink.runtime.jobmanager.ExecutionPlanStoreUtil
      Parameters:
      jobID - job id
      Returns:
      a key to store execution plan in the ConfigMap