@PublicAPI public enum TaskStatus extends Enum<TaskStatus> implements Serializable
Enum Constant and Description |
---|
ABORTED
The task has been aborted by an exception on an other task while the task is running.
|
FAILED
The task is failed
(only if max execution time has been reached and the node on which it was started is down).
|
FAULTY
The task has finished execution with error code (!=0) or exception.
|
FINISHED
The task has finished execution.
|
IN_ERROR
The task is suspended after first error and is waiting for a manual restart action.
|
NOT_RESTARTED
The task could not be restarted.
It means that the task could not be restarted after an error during the previous execution |
NOT_STARTED
The task could not be started.
It means that the task will not be started due to dependence's failure. |
PAUSED
The task is paused.
|
PENDING
The task is in the scheduler pending queue.
|
RUNNING
The task is executing.
|
SKIPPED
The task was not executed: it was the non-selected branch of an IF/ELSE control flow action
|
SUBMITTED
The task has just been submitted by the user.
|
WAITING_ON_ERROR
The task is waiting for restart after an error.
|
WAITING_ON_FAILURE
The task is waiting for restart after a failure.
|
Modifier and Type | Field and Description |
---|---|
static Set<TaskStatus> |
ERROR_TASKS |
static Set<TaskStatus> |
FINISHED_TASKS |
static Set<TaskStatus> |
PAUSED_AND_IN_ERROR_TASKS |
static Set<TaskStatus> |
PENDING_TASKS |
static Set<TaskStatus> |
RUNNING_TASKS |
Modifier and Type | Method and Description |
---|---|
static String |
aggregatedStatusesToFilterString(List<String> statuses) |
static List<TaskStatus> |
allExceptThese(TaskStatus... taskStatuses) |
static Set<TaskStatus> |
expandAggregatedStatusesToRealStatuses(List<String> aggregatedStatuses) |
boolean |
isTaskAlive() |
static String |
statusesToString(Set<TaskStatus> actualStatuses) |
static String |
statusFilterString(Set<TaskStatus> statuses) |
static Set<TaskStatus> |
taskStatuses(boolean pending,
boolean running,
boolean finished) |
String |
toString() |
static TaskStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TaskStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
static List<String> |
wrapIntoAggregatedStatuses(Set<TaskStatus> actualStatuses) |
public static final TaskStatus SUBMITTED
public static final TaskStatus PENDING
public static final TaskStatus PAUSED
public static final TaskStatus RUNNING
public static final TaskStatus WAITING_ON_ERROR
public static final TaskStatus WAITING_ON_FAILURE
public static final TaskStatus FAILED
public static final TaskStatus NOT_STARTED
public static final TaskStatus NOT_RESTARTED
public static final TaskStatus ABORTED
public static final TaskStatus FAULTY
public static final TaskStatus FINISHED
public static final TaskStatus SKIPPED
public static final TaskStatus IN_ERROR
public static final Set<TaskStatus> ERROR_TASKS
public static final Set<TaskStatus> FINISHED_TASKS
public static final Set<TaskStatus> RUNNING_TASKS
public static final Set<TaskStatus> PAUSED_AND_IN_ERROR_TASKS
public static final Set<TaskStatus> PENDING_TASKS
public static TaskStatus[] values()
for (TaskStatus c : TaskStatus.values()) System.out.println(c);
public static TaskStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isTaskAlive()
public String toString()
toString
in class Enum<TaskStatus>
Enum.toString()
public static List<TaskStatus> allExceptThese(TaskStatus... taskStatuses)
public static Set<TaskStatus> expandAggregatedStatusesToRealStatuses(List<String> aggregatedStatuses)
public static List<String> wrapIntoAggregatedStatuses(Set<TaskStatus> actualStatuses)
public static String aggregatedStatusesToFilterString(List<String> statuses)
public static String statusesToString(Set<TaskStatus> actualStatuses)
public static Set<TaskStatus> taskStatuses(boolean pending, boolean running, boolean finished)
public static String statusFilterString(Set<TaskStatus> statuses)