Enum Class Task.TaskStatusForRunning
- All Implemented Interfaces:
Serializable
,Comparable<Task.TaskStatusForRunning>
,Constable
- Enclosing interface:
- Task
Each enum value corresponds to a specific status: FAILED, SUCCESS, KILLED, SUCCESSFUL, RUNNING, FINISHED, or SPECULATIVE.
The FAILED status indicates that the task has failed and will not be able to complete successfully. The SUCCESS status indicates that the task has completed successfully and produced a result. The KILLED status indicates that the task was killed before it could complete. The SUCCESSFUL status indicates that the task has completed successfully, but did not produce a result. The RUNNING status indicates that the task is currently running. The FINISHED status indicates that the task has finished running, but its result has not yet been obtained. The SPECULATIVE status indicates that the task is running in a speculative manner, in addition to the primary task.
- Author:
- [Adeel Aslam]
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Task.TaskStatusForRunning
Returns the enum constant of this class with the specified name.static Task.TaskStatusForRunning[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FAILED
-
SUCCESS
-
KILLED
-
SUCCESSFUL
-
RUNNING
-
FINISHED
-
SPECULATIVE
-
-
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
-