@PublicAPI public enum JobStatus extends Enum<JobStatus> implements Serializable
Enum Constant and Description |
---|
CANCELED
The job has been canceled due to user exception and order.
|
FAILED
The job has failed.
|
FINISHED
The job is finished.
|
IN_ERROR
The job has at least one in-error task and in-error tasks are the last, among others,
which have changed their state (i.e.
|
KILLED
The job has been killed by a user..
|
PAUSED
The job is paused waiting for user to resume it.
|
PENDING
The job is waiting to be scheduled.
|
RUNNING
The job is running.
|
STALLED
The job has been launched but no task are currently running.
|
Modifier and Type | Method and Description |
---|---|
static JobStatus |
findPriority(String name) |
boolean |
isJobAlive() |
String |
toString() |
static JobStatus |
valueOf(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 PENDING
public static final JobStatus RUNNING
public static final JobStatus STALLED
public static final JobStatus FINISHED
public static final JobStatus PAUSED
public static final JobStatus CANCELED
public static final JobStatus FAILED
public static final JobStatus KILLED
public static final JobStatus IN_ERROR
public static JobStatus[] values()
for (JobStatus c : JobStatus.values()) System.out.println(c);
public static JobStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<JobStatus>
Enum.toString()
public boolean isJobAlive()