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