public static enum Job.Status extends java.lang.Enum<Job.Status>
Enum Constant and Description |
---|
ABORTING
The
Signal.ABORT signal has been sent to the
job, but it has not yet responded. |
DONE
The job has finished successfully.
|
ERROR
The job has finished with an error.
|
EXECUTING
The job is executing.
|
PREPARED
The job is beeing prepared for execution.
|
UNCONFIGURED
The job hasn't been configured yet.
|
WAITING
The job is waiting to be started.
|
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
displayValue |
private boolean |
executable |
private int |
value |
private static java.util.Map<java.lang.Integer,Job.Status> |
valueMapping
Maps the integer that is stored in the database.
|
Modifier and Type | Method and Description |
---|---|
static Job.Status |
fromValue(int value)
Get the
Job.Status object when you know the integer code. |
int |
getValue()
Get the integer value that is used when storing a
Job.Status
to the database. |
boolean |
isExecutable()
If the
Job.execute(ProgressReporter, String) method can be
called when the job is in this status or not. |
java.lang.String |
toString() |
static Job.Status |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Job.Status[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Job.Status UNCONFIGURED
public static final Job.Status WAITING
public static final Job.Status PREPARED
public static final Job.Status EXECUTING
public static final Job.Status ABORTING
Signal.ABORT
signal has been sent to the
job, but it has not yet responded.public static final Job.Status DONE
public static final Job.Status ERROR
private static final java.util.Map<java.lang.Integer,Job.Status> valueMapping
private final int value
private final java.lang.String displayValue
private final boolean executable
public static Job.Status[] values()
for (Job.Status c : Job.Status.values()) System.out.println(c);
public static Job.Status valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static Job.Status fromValue(int value)
Job.Status
object when you know the integer code.value
- The integer value.public java.lang.String toString()
toString
in class java.lang.Enum<Job.Status>
public int getValue()
Job.Status
to the database.public boolean isExecutable()
Job.execute(ProgressReporter, String)
method can be
called when the job is in this status or not.