Enum Class TaskState

java.lang.Object
java.lang.Enum<TaskState>
de.bsvrz.ars.ars.mgmt.tasks.base.TaskState
All Implemented Interfaces:
Serializable, Comparable<TaskState>, Constable

public enum TaskState extends Enum<TaskState>
Zustand eines Tasks
  • Enum Constant Details

    • INIT

      public static final TaskState INIT
      Initialer Zustand einer Task nach dem Erzeugen.
    • IDLE

      public static final TaskState IDLE
      Zustand einer Task, die momentan bereit für neue Aufgaben ist.
    • START_WORK

      public static final TaskState START_WORK
      Zustand einer Task, die soeben eine neue Aufgabe bekommen hat und sich auf die Bearbeitung vorbereitet.
    • WORKING

      public static final TaskState WORKING
      Zustand einer Task, die mit der Bearbeitung einer Aufgabe beschäftigt ist.
    • FINISH_WORK

      public static final TaskState FINISH_WORK
      Zustand einer Task, die mit den abschließenden Arbeiten nach Bearbeitung einer Aufgabe beschäftigt ist.
    • TERMINATED

      public static final TaskState TERMINATED
      Zustand einer Task, die terminiert wurde.
  • Method Details

    • values

      public static TaskState[] 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 TaskState 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
    • getStateName

      public String getStateName()
      Liefert den Namen des Zustands zurück.
      Returns:
      Name des Zustands.
    • toString

      public String toString()
      Overrides:
      toString in class Enum<TaskState>