Enum TaskExecutionStateType

  • All Implemented Interfaces:
    Serializable, Comparable<TaskExecutionStateType>

    public enum TaskExecutionStateType
    extends Enum<TaskExecutionStateType>
    <p>Java class for TaskExecutionStateType. <p>The following schema fragment specifies the expected content contained within this class. <p> <pre> &lt;simpleType name="TaskExecutionStateType"&gt; &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string"&gt; &lt;enumeration value="running"/&gt; &lt;enumeration value="runnable"/&gt; &lt;enumeration value="waiting"/&gt; &lt;enumeration value="suspended"/&gt; &lt;enumeration value="closed"/&gt; &lt;/restriction&gt; &lt;/simpleType&gt; </pre>
    • Enum Constant Detail

      • 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.

        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 Detail

      • values

        public static TaskExecutionStateType[] 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 (TaskExecutionStateType c : TaskExecutionStateType.values())
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TaskExecutionStateType 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.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • value

        public String value()