|
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.ExecutionTime> net.sf.basedb.core.Job.ExecutionTime
public static enum Job.ExecutionTime
A rough estimate of the execution time of a job.
Enum Constant Summary | |
---|---|
LONG
The job takes more than 1 hour to execute. |
|
MEDIUM
The job shouldn't take less than 1 hour to execute. |
|
SHORT
The job shouldn't take more than 10 minutes to execute. |
|
SHORTEST
The job is fast and should not take more than a minute to execute. |
Field Summary | |
---|---|
private int |
defaultPriority
|
private int |
defaultSlots
|
private String |
displayValue
|
private int |
value
|
private static Map<Integer,Job.ExecutionTime> |
valueMapping
Maps the integer that is stored in the database. |
Method Summary | |
---|---|
static Job.ExecutionTime |
fromValue(int value)
Get the Job.Status object when you know the integer code. |
int |
getDefaultPriority()
The default thread priority to use when executing jobs in with this execution time. |
int |
getDefaultSlots()
The default number of execution slots available for jobs with this execution time in the internal job queue. |
int |
getValue()
Get the integer value that is used when storing a Job.ExecutionTime
in the database. |
String |
toString()
|
static Job.ExecutionTime |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Job.ExecutionTime[] |
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.ExecutionTime SHORTEST
public static final Job.ExecutionTime SHORT
public static final Job.ExecutionTime MEDIUM
public static final Job.ExecutionTime LONG
Field Detail |
---|
private static final Map<Integer,Job.ExecutionTime> valueMapping
private final int value
private final String displayValue
private final int defaultSlots
private final int defaultPriority
Method Detail |
---|
public static Job.ExecutionTime[] values()
for (Job.ExecutionTime c : Job.ExecutionTime.values()) System.out.println(c);
public static Job.ExecutionTime 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.ExecutionTime fromValue(int value)
Job.Status
object when you know the integer code.
value
- The integer value.
public String toString()
toString
in class Enum<Job.ExecutionTime>
public int getValue()
Job.ExecutionTime
in the database.
public int getDefaultSlots()
public int getDefaultPriority()
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |