Enum ClusterControllerImpl.State

java.lang.Object
java.lang.Enum<ClusterControllerImpl.State>
org.apache.drill.yarn.appMaster.ClusterControllerImpl.State
All Implemented Interfaces:
Serializable, Comparable<ClusterControllerImpl.State>
Enclosing class:
ClusterControllerImpl

public static enum ClusterControllerImpl.State extends Enum<ClusterControllerImpl.State>
Controller lifecycle state.
  • Enum Constant Details

    • START

      public static final ClusterControllerImpl.State START
      Cluster is starting. Things are in a partially-built state. No tasks are started until the cluster moves to LIVE.
    • LIVE

      public static final ClusterControllerImpl.State LIVE
      Normal operating state: the controller seeks to maintain the desired number of tasks.
    • ENDING

      public static final ClusterControllerImpl.State ENDING
      Controller is shutting down. Tasks are gracefully (where possible) ended; no new tasks are started. (That is, when we detect the exit of a task, the controller no longer immediately tries to start a replacement.
    • ENDED

      public static final ClusterControllerImpl.State ENDED
      The controller has shut down. All tasks and threads are stopped. The controller allows the main thread (which has been patiently waiting) to continue, allowing the AM itself to shut down. Thus, this is a very short-lived state.
    • FAILED

      public static final ClusterControllerImpl.State FAILED
      Something bad happened on start-up; the AM can't start and must shut down.
  • Method Details

    • values

      public static ClusterControllerImpl.State[] 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 ClusterControllerImpl.State 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