public enum ZooKeeperJobGraphStoreUtil extends Enum<ZooKeeperJobGraphStoreUtil> implements JobGraphStoreUtil
JobGraphStoreUtil
implementation for ZooKeeper.Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
String |
jobIDToName(JobID jobId)
Get the name in external storage from job id.
|
JobID |
nameToJobID(String name)
Get the job id from name.
|
static ZooKeeperJobGraphStoreUtil |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ZooKeeperJobGraphStoreUtil[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ZooKeeperJobGraphStoreUtil INSTANCE
public static ZooKeeperJobGraphStoreUtil[] values()
for (ZooKeeperJobGraphStoreUtil c : ZooKeeperJobGraphStoreUtil.values()) System.out.println(c);
public static ZooKeeperJobGraphStoreUtil 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 String jobIDToName(JobID jobId)
JobGraphStoreUtil
jobIDToName
in interface JobGraphStoreUtil
jobId
- job idpublic JobID nameToJobID(String name)
JobGraphStoreUtil
nameToJobID
in interface JobGraphStoreUtil
name
- Key name in ConfigMap or child path name in ZooKeeperCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.