org.ourgrid.mygrid.scheduler
Enum ExecutionStatus
java.lang.Object
java.lang.Enum<ExecutionStatus>
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:
- UNSTARTED: the replica is ready to run.
- RUNNING: replica is running.
- FINISHED: replica has been succesfully executed.
- CANCELLED: replica has been cancelled (the end-user has
cancelled the job)
- ABORTED: replica execution has been interrupted (due to the end
of another replica of the same task )
- FAILED: replica execution has failed on the remote machine.
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 |
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
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()