Enum Task.TaskStatusForRunning
- java.lang.Object
-
- java.lang.Enum<Task.TaskStatusForRunning>
-
- org.apache.wayang.spark.monitoring.interfaces.Task.TaskStatusForRunning
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Task.TaskStatusForRunning>
- Enclosing interface:
- Task
public static enum Task.TaskStatusForRunning extends java.lang.Enum<Task.TaskStatusForRunning>
The TaskStatusForRunning enum represents the possible statuses of a task while it is running.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]
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAILED
FINISHED
KILLED
RUNNING
SPECULATIVE
SUCCESS
SUCCESSFUL
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Task.TaskStatusForRunning
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Task.TaskStatusForRunning[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FAILED
public static final Task.TaskStatusForRunning FAILED
-
SUCCESS
public static final Task.TaskStatusForRunning SUCCESS
-
KILLED
public static final Task.TaskStatusForRunning KILLED
-
SUCCESSFUL
public static final Task.TaskStatusForRunning SUCCESSFUL
-
RUNNING
public static final Task.TaskStatusForRunning RUNNING
-
FINISHED
public static final Task.TaskStatusForRunning FINISHED
-
SPECULATIVE
public static final Task.TaskStatusForRunning SPECULATIVE
-
-
Method Detail
-
values
public static Task.TaskStatusForRunning[] 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 (Task.TaskStatusForRunning c : Task.TaskStatusForRunning.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Task.TaskStatusForRunning 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
-
-