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
SingletonExecutionPlanStoreUtilimplementation for Kubernetes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringjobIDToName(org.apache.flink.api.common.JobID jobID)Convert aJobIDto config map key.org.apache.flink.api.common.JobIDnameToJobID(String key)Convert a key in ConfigMap toJobID.static KubernetesExecutionPlanStoreUtilvalueOf(String name)Returns the enum constant of this type with the specified name.static KubernetesExecutionPlanStoreUtil[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final KubernetesExecutionPlanStoreUtil INSTANCE
-
-
Method Detail
-
values
public static KubernetesExecutionPlanStoreUtil[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (KubernetesExecutionPlanStoreUtil c : KubernetesExecutionPlanStoreUtil.values()) System.out.println(c);
- 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 nameNullPointerException- if the argument is null
-
nameToJobID
public org.apache.flink.api.common.JobID nameToJobID(String key)
Convert a key in ConfigMap toJobID. The key is stored with prefixConstants.EXECUTION_PLAN_STORE_KEY_PREFIX.- Specified by:
nameToJobIDin interfaceorg.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 aJobIDto config map key. We will add prefixConstants.EXECUTION_PLAN_STORE_KEY_PREFIX.- Specified by:
jobIDToNamein interfaceorg.apache.flink.runtime.jobmanager.ExecutionPlanStoreUtil- Parameters:
jobID- job id- Returns:
- a key to store execution plan in the ConfigMap
-
-