@InterfaceAudience.Public @InterfaceStability.Unstable public enum NodeState extends Enum<NodeState>
State of a Node.
| Enum Constant and Description | 
|---|
| DECOMMISSIONEDNode is out of service | 
| DECOMMISSIONINGNode decommission is in progress | 
| LOSTNode has not sent a heartbeat for some configured time threshold | 
| NEWNew node | 
| REBOOTEDNode has rebooted | 
| RUNNINGRunning node | 
| SHUTDOWNNode has shutdown gracefully. | 
| UNHEALTHYNode 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 © 2008–2023 Apache Software Foundation. All rights reserved.