Package org.apache.drill.yarn.appMaster
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
Controller lifecycle state.
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClusterControllerImpl.State
Returns the enum constant of this type with the specified name.static ClusterControllerImpl.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
START
Cluster is starting. Things are in a partially-built state. No tasks are started until the cluster moves to LIVE. -
LIVE
Normal operating state: the controller seeks to maintain the desired number of tasks. -
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
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
Something bad happened on start-up; the AM can't start and must shut down.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-