Enum Constant and Description |
---|
ACCEPTED
The job has been accepted by the system via the REST API.
|
CLAIMED
The job has been claimed by a running agent.
|
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.
|
RESERVED
The id of the job has been reserved.
|
RESOLVED
The job specification has been resolved.
|
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> |
getClaimableStatuses()
Get an unmodifiable set of all the statuses from which a job can be marked claimed.
|
static java.util.Set<JobStatus> |
getFinishedStatuses()
Get an unmodifiable set of all the statuses that make up a job being considered finished.
|
static java.util.Set<JobStatus> |
getResolvableStatuses()
Get an unmodifiable set of all the statuses from which a job can be marked resolved.
|
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 RESERVED
public static final JobStatus RESOLVED
public static final JobStatus ACCEPTED
public static final JobStatus CLAIMED
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 static java.util.Set<JobStatus> getActiveStatuses()
public static java.util.Set<JobStatus> getFinishedStatuses()
public static java.util.Set<JobStatus> getResolvableStatuses()
public static java.util.Set<JobStatus> getClaimableStatuses()
public boolean isFinished()