Enum TaskState.State
- java.lang.Object
-
- java.lang.Enum<TaskState.State>
-
- org.apache.nemo.runtime.common.state.TaskState.State
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TaskState.State>
- Enclosing class:
- TaskState
public static enum TaskState.State extends java.lang.Enum<TaskState.State>
TaskState.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TaskState.State
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TaskState.State[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
READY
public static final TaskState.State READY
-
EXECUTING
public static final TaskState.State EXECUTING
-
ON_HOLD
public static final TaskState.State ON_HOLD
-
COMPLETE
public static final TaskState.State COMPLETE
-
SHOULD_RETRY
public static final TaskState.State SHOULD_RETRY
-
FAILED
public static final TaskState.State FAILED
-
-
Method Detail
-
values
public static TaskState.State[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (TaskState.State c : TaskState.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TaskState.State valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-