Enum Class TaskManager.TaskState

java.lang.Object
java.lang.Enum<TaskManager.TaskState>
io.aleph0.yap.core.task.TaskManager.TaskState
All Implemented Interfaces:
Serializable, Comparable<TaskManager.TaskState>, Constable
Enclosing class:
TaskManager<WorkerMetricsT>

public static enum TaskManager.TaskState extends Enum<TaskManager.TaskState>
  • Enum Constant Details

  • Method Details

    • values

      public static TaskManager.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 TaskManager.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
    • getPhase

      public TaskManager.TaskPhase getPhase()
    • to

      public abstract TaskManager.TaskState to(TaskManager.TaskState target)
      Validate that the transition to the target state is valid.
      Parameters:
      target - the target state
      Returns:
      the target state
      Throws:
      IllegalStateException - if the transition is invalid