|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<State>
org.ogf.saga.task.State
public enum State
This enumeration type describes the possible states of a task. Also includes the states of the job class, since enumerations cannot be extended.
Enum Constant Summary | |
---|---|
CANCELED
The task has been cancelled, that is, Task.cancel() has been called on it. |
|
DONE
The task has finished successfully. |
|
FAILED
The task has finished unsuccessfully. |
|
NEW
Describes a newly constructed task instance which has not yet run. |
|
RUNNING
The Task.run() method has been invoked on the task, either
explicitly or implicitly. |
|
SUSPENDED
This is actually a job state, but is included here because enumerations cannot be extended. |
Method Summary | |
---|---|
int |
getValue()
Returns the integer value of this enumeration literal. |
static State |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static State[] |
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 |
---|
public static final State NEW
public static final State RUNNING
Task.run()
method has been invoked on the task, either
explicitly or implicitly.
public static final State DONE
public static final State CANCELED
Task.cancel()
has been called on it.
This state is final.
public static final State FAILED
public static final State SUSPENDED
Method Detail |
---|
public static State[] values()
for (State c : State.values()) System.out.println(c);
public static State valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic int getValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |