Enum KubernetesJobGraphStoreUtil
- java.lang.Object
-
- java.lang.Enum<KubernetesJobGraphStoreUtil>
-
- org.apache.flink.kubernetes.highavailability.KubernetesJobGraphStoreUtil
-
- All Implemented Interfaces:
Serializable,Comparable<KubernetesJobGraphStoreUtil>,org.apache.flink.runtime.jobmanager.JobGraphStoreUtil
public enum KubernetesJobGraphStoreUtil extends Enum<KubernetesJobGraphStoreUtil> implements org.apache.flink.runtime.jobmanager.JobGraphStoreUtil
SingletonJobGraphStoreUtilimplementation 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 KubernetesJobGraphStoreUtilvalueOf(String name)Returns the enum constant of this type with the specified name.static KubernetesJobGraphStoreUtil[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final KubernetesJobGraphStoreUtil INSTANCE
-
-
Method Detail
-
values
public static KubernetesJobGraphStoreUtil[] 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 (KubernetesJobGraphStoreUtil c : KubernetesJobGraphStoreUtil.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KubernetesJobGraphStoreUtil 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.JOB_GRAPH_STORE_KEY_PREFIX.- Specified by:
nameToJobIDin interfaceorg.apache.flink.runtime.jobmanager.JobGraphStoreUtil- Parameters:
key- job graph 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.JOB_GRAPH_STORE_KEY_PREFIX.- Specified by:
jobIDToNamein interfaceorg.apache.flink.runtime.jobmanager.JobGraphStoreUtil- Parameters:
jobID- job id- Returns:
- a key to store job graph in the ConfigMap
-
-