Enum Class TaskStatus.State
- All Implemented Interfaces:
Serializable,Comparable<TaskStatus.State>,Constable
- Enclosing class:
- org.apache.hadoop.applications.mawo.server.common.TaskStatus
Possible Task States.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionEXPIRE State refers to when a task is expired.FAILED State is assigned when task fails.INIT State refers to Task initialization.KILLED State refers to when a task is killed.RUNNING State refers to Task in Running state.SUCCEEDED State is assigned when task finishes successfully. -
Method Summary
Modifier and TypeMethodDescriptionstatic TaskStatus.StateReturns the enum constant of this class with the specified name.static TaskStatus.State[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INIT
INIT State refers to Task initialization. -
RUNNING
RUNNING State refers to Task in Running state. -
SUCCEEDED
SUCCEEDED State is assigned when task finishes successfully. -
FAILED
FAILED State is assigned when task fails. -
KILLED
KILLED State refers to when a task is killed. -
EXPIRE
EXPIRE State refers to when a task is expired.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-