public enum State extends Enum<State>
Enum Constant and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
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 nameNullPointerException
- if the argument is nullpublic int getValue()
Copyright © 2016 Open Grid Forum. All rights reserved.