Enum Class NodeState

java.lang.Object
java.lang.Enum<NodeState>
org.apache.hadoop.yarn.api.records.NodeState
All Implemented Interfaces:
Serializable, Comparable<NodeState>, Constable

@Public @Unstable public enum NodeState extends Enum<NodeState>

State of a Node.

  • Enum Constant Details

    • NEW

      public static final NodeState NEW
      New node
    • RUNNING

      public static final NodeState RUNNING
      Running node
    • UNHEALTHY

      public static final NodeState UNHEALTHY
      Node is unhealthy
    • DECOMMISSIONED

      public static final NodeState DECOMMISSIONED
      Node is out of service
    • LOST

      public static final NodeState LOST
      Node has not sent a heartbeat for some configured time threshold
    • REBOOTED

      public static final NodeState REBOOTED
      Node has rebooted
    • DECOMMISSIONING

      public static final NodeState DECOMMISSIONING
      Node decommission is in progress
    • SHUTDOWN

      public static final NodeState SHUTDOWN
      Node has shutdown gracefully.
  • Method Details

    • values

      public static NodeState[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static NodeState valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isUnusable

      public boolean isUnusable()
    • isInactiveState

      public boolean isInactiveState()
    • isActiveState

      public boolean isActiveState()