|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<JobPriority> dk.netarkivet.harvester.datamodel.JobPriority
public enum JobPriority
Enum of the possible priorities of a job. Jobs with a given priority are sent to the same queue, and each harvester listens to one if them.
Enum Constant Summary | |
---|---|
HIGHPRIORITY
High priority jobs. |
|
LOWPRIORITY
Low priority jobs. |
Method Summary | |
---|---|
static JobPriority |
fromOrdinal(int status)
Helper method that gives a proper object from e.g. |
java.lang.String |
getLocalizedString(java.util.Locale l)
Return a localized human-readable string describing a job with this priority. |
static JobPriority |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static JobPriority[] |
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, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final JobPriority LOWPRIORITY
public static final JobPriority HIGHPRIORITY
Method Detail |
---|
public static JobPriority[] values()
for (JobPriority c : JobPriority.values()) System.out.println(c);
public static JobPriority 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 name
java.lang.NullPointerException
- if the argument is nullpublic static JobPriority fromOrdinal(int status)
status
- a certain integer
public java.lang.String getLocalizedString(java.util.Locale l)
l
- The locale
ArgumentNotValid
- on null locale.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |