Enum Class TaskExecutionState
- All Implemented Interfaces:
Serializable
,Comparable<TaskExecutionState>
,Constable
All possible values for the execution state of a task.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isActive()
If the task is in an active state, the task can go into a different state by itself.boolean
Determines if the task is in a state where it is executing steps.boolean
Determines if the task has been executing but is halted and can be continued.boolean
isFinal()
If the task is in a final state, it will never change again to another state.boolean
Determines if the task is never been executing.boolean
If the task is in a passive state, the task will not go into a different state by itself.boolean
Determines if the task is passive but it has been executing steps.static TaskExecutionState
Returns the enum constant of this class with the specified name.static TaskExecutionState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNREGISTERED
-
PENDING
-
SCHEDULED
-
QUEUED
-
EXECUTING
-
FAILING
-
FAILED
-
STOPPING
-
STOPPED
-
ABORTING
-
ABORTED
-
EXECUTED
-
DONE
-
CANCELLED
-
CANCELLING
-
FORCE_CANCELLED
-
-
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
-
isFinal
public boolean isFinal()If the task is in a final state, it will never change again to another state.- Returns:
- true if task is in a final state.
-
isActive
public boolean isActive()If the task is in an active state, the task can go into a different state by itself.- Returns:
- true if task is in active state.
-
isPassive
public boolean isPassive()If the task is in a passive state, the task will not go into a different state by itself.- Returns:
- true if task is in active state.
-
isExecutingSteps
public boolean isExecutingSteps()Determines if the task is in a state where it is executing steps. This is a subset ofisActive()
- Returns:
- true if task is executing steps
-
isPassiveAfterExecuting
public boolean isPassiveAfterExecuting()Determines if the task is passive but it has been executing steps.- Returns:
- true if task is passive after it has been executing steps
-
isExecutionHalted
public boolean isExecutionHalted()Determines if the task has been executing but is halted and can be continued.- Returns:
- true if task is halted
-
isNotBeenExecuting
public boolean isNotBeenExecuting()Determines if the task is never been executing.- Returns:
- true if the task is never been executing
-