Enum Constant and Description |
---|
FAILED
Job failed.
|
INIT
Job has been initialized, but not running yet.
|
INVALID
Job cannot be run due to invalid criteria.
|
KILLED
Job has been killed.
|
RUNNING
Job is now running.
|
SUCCEEDED
Job has finished executing, and is successful.
|
Modifier and Type | Method and Description |
---|---|
static java.util.Set<JobStatus> |
getActiveStatuses()
Get an unmodifiable set of all the statuses that make up a job being considered active.
|
static java.util.Set<JobStatus> |
getFinishedStatuses()
Get an unmodifiable set of all the statuses that make up a job being considered finished.
|
boolean |
isActive()
Check whether this job is in an active state or not.
|
boolean |
isFinished()
Check whether the job is no longer running.
|
static JobStatus |
parse(java.lang.String value)
Parse job 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 are declared.
|
public static final JobStatus INIT
public static final JobStatus RUNNING
public static final JobStatus SUCCEEDED
public static final JobStatus KILLED
public static final JobStatus FAILED
public static final JobStatus INVALID
public static 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 namejava.lang.NullPointerException
- if the argument is nullpublic static JobStatus parse(java.lang.String value) throws GeniePreconditionException
value
- string to parse/convertGeniePreconditionException
- if invalid value passed inpublic boolean isActive()
public boolean isFinished()
public static java.util.Set<JobStatus> getActiveStatuses()
public static java.util.Set<JobStatus> getFinishedStatuses()