Enum ZooKeeperExecutionPlanStoreUtil
java.lang.Object
java.lang.Enum<ZooKeeperExecutionPlanStoreUtil>
org.apache.flink.runtime.jobmanager.ZooKeeperExecutionPlanStoreUtil
- All Implemented Interfaces:
Serializable,Comparable<ZooKeeperExecutionPlanStoreUtil>,ExecutionPlanStoreUtil
public enum ZooKeeperExecutionPlanStoreUtil
extends Enum<ZooKeeperExecutionPlanStoreUtil>
implements ExecutionPlanStoreUtil
Singleton
ExecutionPlanStoreUtil implementation for ZooKeeper.-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionjobIDToName(org.apache.flink.api.common.JobID jobId) Get the name in external storage from job id.org.apache.flink.api.common.JobIDnameToJobID(String name) Get the job id from name.Returns the enum constant of this type with the specified name.static ZooKeeperExecutionPlanStoreUtil[]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
-
jobIDToName
Description copied from interface:ExecutionPlanStoreUtilGet the name in external storage from job id.- Specified by:
jobIDToNamein interfaceExecutionPlanStoreUtil- Parameters:
jobId- job id- Returns:
- Key name in ConfigMap or child path name in ZooKeeper
-
nameToJobID
Description copied from interface:ExecutionPlanStoreUtilGet the job id from name.- Specified by:
nameToJobIDin interfaceExecutionPlanStoreUtil- Parameters:
name- Key name in ConfigMap or child path name in ZooKeeper- Returns:
- parsed job id.
-