org.ourgrid.mygrid.scheduler
Enum ExecutionStatus

java.lang.Object
  extended by java.lang.Enum<ExecutionStatus>
      extended by org.ourgrid.mygrid.scheduler.ExecutionStatus
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ExecutionStatus>

public enum ExecutionStatus
extends java.lang.Enum<ExecutionStatus>

Enumeration representing the possible states of a Job, Task or Replica. There are six possible states:


Enum Constant Summary
ABORTED
           
CANCELLED
           
FAILED
           
FINISHED
           
RUNNING
           
UNSTARTED
           
 
Method Summary
 boolean isAborted()
           
 boolean isCancelled()
           
 boolean isFailed()
           
 boolean isFinished()
           
 boolean isRunning()
           
 boolean isUnstarted()
           
static ExecutionStatus valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ExecutionStatus[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNSTARTED

public static final ExecutionStatus UNSTARTED

RUNNING

public static final ExecutionStatus RUNNING

FINISHED

public static final ExecutionStatus FINISHED

CANCELLED

public static final ExecutionStatus CANCELLED

ABORTED

public static final ExecutionStatus ABORTED

FAILED

public static final ExecutionStatus FAILED
Method Detail

values

public static final ExecutionStatus[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(ExecutionStatus c : ExecutionStatus.values())
        System.out.println(c);

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

valueOf

public static ExecutionStatus 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

isRunning

public boolean isRunning()

isUnstarted

public boolean isUnstarted()

isFinished

public boolean isFinished()

isFailed

public boolean isFailed()

isCancelled

public boolean isCancelled()

isAborted

public boolean isAborted()