|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<JobStatus>
dk.netarkivet.harvester.datamodel.JobStatus
public enum JobStatus
Enum of the possible statuses (alt.: status) a Job can be in.
Enum Constant Summary | |
---|---|
DONE
|
|
FAILED
|
|
NEW
|
|
RESUBMITTED
|
|
STARTED
|
|
SUBMITTED
|
Method Summary | |
---|---|
static JobStatus |
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 this status. |
boolean |
legalChange(JobStatus newStatus)
True if it is legal to change from this status to a new status. |
static JobStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static JobStatus[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final JobStatus NEW
public static final JobStatus SUBMITTED
public static final JobStatus STARTED
public static final JobStatus DONE
public static final JobStatus FAILED
public static final JobStatus RESUBMITTED
Method Detail |
---|
public static final JobStatus[] values()
for(JobStatus c : JobStatus.values()) System.out.println(c);
public static JobStatus 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 namepublic static JobStatus fromOrdinal(int status)
status
- a certain integer
ArgumentNotValid
public java.lang.String getLocalizedString(java.util.Locale l)
l
- The locale
ArgumentNotValid
- on null locale.public boolean legalChange(JobStatus newStatus)
newStatus
- a new JobStatus
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |