@InterfaceAudience.Public @InterfaceStability.Unstable public enum NodeState extends Enum<NodeState>
State of a Node
.
Enum Constant and Description |
---|
DECOMMISSIONED
Node is out of service
|
DECOMMISSIONING
Node decommission is in progress
|
LOST
Node has not sent a heartbeat for some configured time threshold
|
NEW
New node
|
REBOOTED
Node has rebooted
|
RUNNING
Running node
|
SHUTDOWN
Node has shutdown gracefully.
|
UNHEALTHY
Node is unhealthy
|
Modifier and Type | Method and Description |
---|---|
boolean |
isActiveState() |
boolean |
isInactiveState() |
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 final NodeState DECOMMISSIONING
public static final NodeState SHUTDOWN
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()
public boolean isInactiveState()
public boolean isActiveState()
Copyright © 2020 Apache Software Foundation. All rights reserved.