com.xebialabs.deployit.plugin.trigger
Enum TaskState

java.lang.Object
  extended by java.lang.Enum<TaskState>
      extended by com.xebialabs.deployit.plugin.trigger.TaskState
All Implemented Interfaces:
TriggerState<com.xebialabs.deployit.engine.api.execution.TaskExecutionState>, java.io.Serializable, java.lang.Comparable<TaskState>

public enum TaskState
extends java.lang.Enum<TaskState>
implements TriggerState<com.xebialabs.deployit.engine.api.execution.TaskExecutionState>


Enum Constant Summary
ANY
           
CANCELLED
           
DONE
           
EXECUTED
           
EXECUTING
           
PENDING
           
QUEUED
           
STOPPED
           
 
Method Summary
 boolean equivalentTo(com.xebialabs.deployit.engine.api.execution.TaskExecutionState spiState)
           
 boolean isValidTransition(TaskState toState)
           
static TaskState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TaskState[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ANY

public static final TaskState ANY

QUEUED

public static final TaskState QUEUED

PENDING

public static final TaskState PENDING

EXECUTING

public static final TaskState EXECUTING

DONE

public static final TaskState DONE

STOPPED

public static final TaskState STOPPED

EXECUTED

public static final TaskState EXECUTED

CANCELLED

public static final TaskState CANCELLED
Method Detail

values

public static TaskState[] 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 (TaskState c : TaskState.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TaskState valueOf(java.lang.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.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

equivalentTo

public boolean equivalentTo(com.xebialabs.deployit.engine.api.execution.TaskExecutionState spiState)
Specified by:
equivalentTo in interface TriggerState<com.xebialabs.deployit.engine.api.execution.TaskExecutionState>

isValidTransition

public boolean isValidTransition(TaskState toState)