Enum Class TaskExecutionStateType

java.lang.Object
java.lang.Enum<TaskExecutionStateType>
com.evolveum.midpoint.xml.ns._public.common.common_3.TaskExecutionStateType
All Implemented Interfaces:
TypeSafeEnum, Serializable, Comparable<TaskExecutionStateType>, Constable

public enum TaskExecutionStateType extends Enum<TaskExecutionStateType> implements TypeSafeEnum
Execution state provides information about the task overall high-level execution state. It tells whether the task is running, runnable, suspended, waits for something or is done.
  • Enum Constant Details

    • RUNNING

      public static final TaskExecutionStateType RUNNING
      The task is running. If this is a child-less task, it means that there is a thread on one of the nodes that executes this task. (An exception is when a node crashes. Then previously running tasks are left in "running" state - until the state is updated by some of the remaining nodes.) For tasks with children, the RUNNING state means that either this task is executing in a thread, or any of its children (transitively) is running. This is to ensure that user sees the task states consistently.
    • RUNNABLE

      public static final TaskExecutionStateType RUNNABLE
      The task is ready to be executed by the scheduler. It just waits either for the defined time to come, or for available thread or node to execute the task.
    • WAITING

      public static final TaskExecutionStateType WAITING
      The task is waiting, typically for some other task. Note that this DOES NOT cover parent tasks waiting for their running children. Such parents are in RUNNING state as well. Also, if all children are suspended, then the parent is suspended as well.
    • SUSPENDED

      public static final TaskExecutionStateType SUSPENDED
      The task has been suspended. It waits until resumed.
    • CLOSED

      public static final TaskExecutionStateType CLOSED
      The task is done. No other changes or progress will happen. The task in this state is considered immutable and the only things that can happen to it is a delete by a cleanup code.
  • Method Details

    • values

      public static TaskExecutionStateType[] 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

      public static TaskExecutionStateType valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • value

      public String value()
      Description copied from interface: TypeSafeEnum
      Returns enum value defined as in schema.
      Specified by:
      value in interface TypeSafeEnum
      Returns:
    • fromValue

      public static TaskExecutionStateType fromValue(String v)