public enum ZooKeeperCheckpointStoreUtil extends Enum<ZooKeeperCheckpointStoreUtil> implements CheckpointStoreUtil
CheckpointStoreUtil implementation for ZooKeeper.| 枚举常量和说明 |
|---|
INSTANCE |
INVALID_CHECKPOINT_ID| 限定符和类型 | 方法和说明 |
|---|---|
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)
返回带有指定名称的该类型的枚举常量。
|
static ZooKeeperCheckpointStoreUtil[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
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 - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String checkpointIDToName(long checkpointId)
checkpointIDToName 在接口中 CheckpointStoreUtilcheckpointId - to convert to the pathpublic long nameToCheckpointID(String path)
nameToCheckpointID 在接口中 CheckpointStoreUtilpath - in ZooKeeperCopyright © 2014–2022 The Apache Software Foundation. All rights reserved.