@InterfaceAudience.Public @InterfaceStability.Unstable public enum NodeState extends Enum<NodeState>
State of a Node
.
Enum Constant and Description |
---|
DECOMMISSIONED
Node is out of service
|
LOST
Node has not sent a heartbeat for some configured time threshold
|
NEW
New node
|
REBOOTED
Node has rebooted
|
RUNNING
Running node
|
UNHEALTHY
Node is unhealthy
|
Modifier and Type | Method and Description |
---|---|
boolean |
isUnusable() |
static NodeState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NodeState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NodeState NEW
public static final NodeState RUNNING
public static final NodeState UNHEALTHY
public static final NodeState DECOMMISSIONED
public static final NodeState LOST
public static final NodeState REBOOTED
public static NodeState[] values()
for (NodeState c : NodeState.values()) System.out.println(c);
public static NodeState 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 boolean isUnusable()
Copyright © 2013 Apache Software Foundation. All rights reserved.