public enum NodeStatus extends Enum<NodeStatus>
| Enum Constant and Description |
|---|
DISABLE
The node should stop working when it next time checks its status.
|
DISABLED
The node has stopped working.
|
ENABLE
The node should start working when it next time checks its status.
|
ENABLED
The node has started working.
|
FAILED
A node is marked considered failed/dead if it ENABLED but does not regularly update its heartbeat.
|
| Modifier and Type | Method and Description |
|---|---|
static NodeStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NodeStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NodeStatus ENABLE
public static final NodeStatus ENABLED
public static final NodeStatus DISABLE
public static final NodeStatus DISABLED
public static final NodeStatus FAILED
public static NodeStatus[] values()
for (NodeStatus c : NodeStatus.values()) System.out.println(c);
public static NodeStatus 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 nullCopyright © 2018. All rights reserved.