Enum TaskDtoExecutionState
- java.lang.Object
-
- java.lang.Enum<TaskDtoExecutionState>
-
- com.evolveum.midpoint.web.page.admin.server.dto.TaskDtoExecutionState
-
- All Implemented Interfaces:
Serializable
,Comparable<TaskDtoExecutionState>
public enum TaskDtoExecutionState extends Enum<TaskDtoExecutionState>
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.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CLOSED
RUNNABLE
RUNNING
RUNNING_OR_RUNNABLE
SUSPENDED
SUSPENDING
WAITING
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TaskDtoExecutionState
fromTaskExecutionState(TaskExecutionStateType executionState, boolean running)
static TaskDtoExecutionState
valueOf(String name)
Returns the enum constant of this type with the specified name.static TaskDtoExecutionState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RUNNING_OR_RUNNABLE
public static final TaskDtoExecutionState RUNNING_OR_RUNNABLE
-
RUNNING
public static final TaskDtoExecutionState RUNNING
-
RUNNABLE
public static final TaskDtoExecutionState RUNNABLE
-
WAITING
public static final TaskDtoExecutionState WAITING
-
SUSPENDED
public static final TaskDtoExecutionState SUSPENDED
-
SUSPENDING
public static final TaskDtoExecutionState SUSPENDING
-
CLOSED
public static final TaskDtoExecutionState CLOSED
-
-
Method Detail
-
values
public static TaskDtoExecutionState[] 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 (TaskDtoExecutionState c : TaskDtoExecutionState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TaskDtoExecutionState valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromTaskExecutionState
public static TaskDtoExecutionState fromTaskExecutionState(TaskExecutionStateType executionState, boolean running)
-
-