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 Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionjobIDToName(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.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 Details
-
INSTANCE
-
-
Method Details
-
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
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
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
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
-