Enum Class TaskDtoExecutionState
java.lang.Object
java.lang.Enum<TaskDtoExecutionState>
com.evolveum.midpoint.web.page.admin.server.dto.TaskDtoExecutionState
- All Implemented Interfaces:
Serializable
,Comparable<TaskDtoExecutionState>
,Constable
TODO TODO TODO update this doc
Original description:
Adds "RUNNING" state to the TaskExecutionState (meaning the task is currently executing at a node).
And also "SUSPENDING" if it is running, but marked as suspended.
New meaning:
Probably not needed any more. The RUNNING_OR_RUNNABLE is needed to query for the task state, and should not be here.
-
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 TypeMethodDescriptionstatic TaskDtoExecutionState
fromTaskExecutionState
(TaskExecutionStateType executionState, boolean running) static TaskDtoExecutionState
Returns the enum constant of this class with the specified name.static TaskDtoExecutionState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RUNNING_OR_RUNNABLE
-
RUNNING
-
RUNNABLE
-
WAITING
-
SUSPENDED
-
SUSPENDING
-
CLOSED
-
-
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
-
fromTaskExecutionState
public static TaskDtoExecutionState fromTaskExecutionState(TaskExecutionStateType executionState, boolean running)
-