public enum KubernetesCheckpointStoreUtil extends Enum<KubernetesCheckpointStoreUtil> implements CheckpointStoreUtil
CheckpointStoreUtil
implementation for Kubernetes.Enum Constant and Description |
---|
INSTANCE |
INVALID_CHECKPOINT_ID
Modifier and Type | Method and Description |
---|---|
String |
checkpointIDToName(long checkpointId)
Convert a checkpoint id into a ConfigMap key.
|
long |
nameToCheckpointID(String key)
Converts a key in ConfigMap to the checkpoint id.
|
static KubernetesCheckpointStoreUtil |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KubernetesCheckpointStoreUtil[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KubernetesCheckpointStoreUtil INSTANCE
public static KubernetesCheckpointStoreUtil[] values()
for (KubernetesCheckpointStoreUtil c : KubernetesCheckpointStoreUtil.values()) System.out.println(c);
public static KubernetesCheckpointStoreUtil 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 checkpointIDToName(long checkpointId)
checkpointIDToName
in interface CheckpointStoreUtil
checkpointId
- to convert to the keypublic long nameToCheckpointID(String key)
nameToCheckpointID
in interface CheckpointStoreUtil
key
- in ConfigMapCopyright © 2014–2023 The Apache Software Foundation. All rights reserved.