public static enum Job.ExecutionTime extends java.lang.Enum<Job.ExecutionTime>
Enum Constant and Description |
---|
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.
|
Modifier and Type | Field and Description |
---|---|
private int |
defaultPriority |
private int |
defaultSlots |
private java.lang.String |
displayValue |
private int |
value |
private static java.util.Map<java.lang.Integer,Job.ExecutionTime> |
valueMapping
Maps the integer that is stored in the database.
|
Modifier and Type | Method and Description |
---|---|
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. |
java.lang.String |
toString() |
static Job.ExecutionTime |
valueOf(java.lang.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.
|
public static final Job.ExecutionTime SHORTEST
public static final Job.ExecutionTime SHORT
public static final Job.ExecutionTime MEDIUM
public static final Job.ExecutionTime LONG
private static final java.util.Map<java.lang.Integer,Job.ExecutionTime> valueMapping
private final int value
private final java.lang.String displayValue
private final int defaultSlots
private final int defaultPriority
public static Job.ExecutionTime[] values()
for (Job.ExecutionTime c : Job.ExecutionTime.values()) System.out.println(c);
public static Job.ExecutionTime 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.ExecutionTime 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.ExecutionTime>
public int getValue()
Job.ExecutionTime
in the database.public int getDefaultSlots()
public int getDefaultPriority()