|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Job.Status> net.sf.basedb.core.Job.Status
public static enum Job.Status
The status of a job.
Enum Constant Summary | |
---|---|
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. |
Field Summary | |
---|---|
private String |
displayValue
|
private boolean |
executable
|
private int |
value
|
private static Map<Integer,Job.Status> |
valueMapping
Maps the integer that is stored in the database. |
Method Summary | |
---|---|
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. |
String |
toString()
|
static Job.Status |
valueOf(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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Field Detail |
---|
private static final Map<Integer,Job.Status> valueMapping
private final int value
private final String displayValue
private final boolean executable
Method Detail |
---|
public static Job.Status[] values()
for (Job.Status c : Job.Status.values()) System.out.println(c);
public static Job.Status 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 static Job.Status fromValue(int value)
Job.Status
object when you know the integer code.
value
- The integer value.
public String toString()
toString
in class 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.
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |