Enum NodeStatus

java.lang.Object
java.lang.Enum<NodeStatus>
co.yellowdog.platform.model.NodeStatus
All Implemented Interfaces:
Serializable, Comparable<NodeStatus>, java.lang.constant.Constable

public enum NodeStatus extends Enum<NodeStatus>
Indicates the status of a node.
  • Enum Constant Details

    • RUNNING

      public static final NodeStatus RUNNING
      The node is running and its heartbeat is being received.
    • LATE

      public static final NodeStatus LATE
      The node's heartbeat is late.
    • LOST

      public static final NodeStatus LOST
      The node's heartbeat has not been received for long enough that it is considered lost.
    • DEREGISTERED

      public static final NodeStatus DEREGISTERED
      The node has been deregistered from the worker pool.
    • TERMINATED

      public static final NodeStatus TERMINATED
      The node has been terminated.
  • Method Details

    • values

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

      public static NodeStatus valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • isActive

      public boolean isActive()
      Returns true, if the status indicates the node is active; otherwise, false.
      Returns:
      true, if the status indicates the node is active; otherwise, false.
    • isGone

      public boolean isGone()
      Returns true, if the status indicates the node has gone; otherwise, false.
      Returns:
      true, if the status indicates the node has gone; otherwise, false.