public enum ClusterNodeState extends java.lang.Enum<ClusterNodeState>
枚举常量和说明 |
---|
Approaching
连接中
|
Crashed
down了
|
Leaving
离开中
|
Member
连接上了,是一个正式成员
|
NotStarted
未启动
|
OutSide
集群之外
|
限定符和类型 | 方法和说明 |
---|---|
static ClusterNodeState |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static ClusterNodeState[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ClusterNodeState NotStarted
public static final ClusterNodeState Crashed
public static final ClusterNodeState OutSide
public static final ClusterNodeState Approaching
public static final ClusterNodeState Member
public static final ClusterNodeState Leaving
public static ClusterNodeState[] values()
for (ClusterNodeState c : ClusterNodeState.values()) System.out.println(c);
public static ClusterNodeState valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值