Enum Class TaskExecutionState

java.lang.Object
java.lang.Enum<TaskExecutionState>
com.xebialabs.deployit.engine.api.execution.TaskExecutionState
All Implemented Interfaces:
Serializable, Comparable<TaskExecutionState>, Constable

public enum TaskExecutionState extends Enum<TaskExecutionState>
All possible values for the execution state of a task.
  • Enum Constant Details

  • Method Details

    • values

      public static TaskExecutionState[] 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 TaskExecutionState 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
    • isFinal

      public boolean isFinal()
      If the task is in a final state, it will never change again to another state.
      Returns:
      true if task is in a final state.
    • isActive

      public boolean isActive()
      If the task is in an active state, the task can go into a different state by itself.
      Returns:
      true if task is in active state.
    • isPassive

      public boolean isPassive()
      If the task is in a passive state, the task will not go into a different state by itself.
      Returns:
      true if task is in active state.
    • isExecutingSteps

      public boolean isExecutingSteps()
      Determines if the task is in a state where it is executing steps. This is a subset of isActive()
      Returns:
      true if task is executing steps
    • isPassiveAfterExecuting

      public boolean isPassiveAfterExecuting()
      Determines if the task is passive but it has been executing steps.
      Returns:
      true if task is passive after it has been executing steps
    • isExecutionHalted

      public boolean isExecutionHalted()
      Determines if the task has been executing but is halted and can be continued.
      Returns:
      true if task is halted
    • isNotBeenExecuting

      public boolean isNotBeenExecuting()
      Determines if the task is never been executing.
      Returns:
      true if the task is never been executing