public enum KubernetesJobGraphStoreUtil extends Enum<KubernetesJobGraphStoreUtil> implements JobGraphStoreUtil
JobGraphStoreUtil
implementation for Kubernetes.Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
String |
jobIDToName(JobID jobID)
Convert a
JobID to config map key. |
JobID |
nameToJobID(String key)
Convert a key in ConfigMap to
JobID . |
static KubernetesJobGraphStoreUtil |
valueOf(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.
|
public static final KubernetesJobGraphStoreUtil INSTANCE
public static KubernetesJobGraphStoreUtil[] values()
for (KubernetesJobGraphStoreUtil c : KubernetesJobGraphStoreUtil.values()) System.out.println(c);
public static KubernetesJobGraphStoreUtil valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic JobID nameToJobID(String key)
JobID
. The key is stored with prefix Constants.JOB_GRAPH_STORE_KEY_PREFIX
.nameToJobID
in interface JobGraphStoreUtil
key
- job graph key in ConfigMap.JobID
.public String jobIDToName(JobID jobID)
JobID
to config map key. We will add prefix Constants.JOB_GRAPH_STORE_KEY_PREFIX
.jobIDToName
in interface JobGraphStoreUtil
jobID
- job idCopyright © 2014–2024 The Apache Software Foundation. All rights reserved.