public static enum JobUtils.JobStatus extends Enum<JobUtils.JobStatus>
| Enum Constant and Description | 
|---|
| DEFINEDThe job is has been/is being defined or configured. | 
| FAILEDThe execution has failed. | 
| KILLEDThe execution was cancelled or killed. | 
| PREPARINGThe job has been submited to the tracker and its execution
 is being prepared. | 
| RUNNINGThe job is actually running. | 
| SUCCEEDEDThe execution has completed successfully. | 
| UNKNOWNThe status cannot be determined - either because the job might be invalid
 or maybe because of a communication failure. | 
| Modifier and Type | Method and Description | 
|---|---|
| static JobUtils.JobStatus | fromJobState(Job.JobState jobState) | 
| static JobUtils.JobStatus | fromRunState(int state) | 
| boolean | isFinished() | 
| boolean | isRunning() | 
| boolean | isStarted() | 
| static JobUtils.JobStatus | valueOf(String name)Returns the enum constant of this type with the specified name. | 
| static JobUtils.JobStatus[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final JobUtils.JobStatus UNKNOWN
public static final JobUtils.JobStatus DEFINED
public static final JobUtils.JobStatus PREPARING
public static final JobUtils.JobStatus RUNNING
public static final JobUtils.JobStatus SUCCEEDED
public static final JobUtils.JobStatus FAILED
public static final JobUtils.JobStatus KILLED
public static JobUtils.JobStatus[] values()
for (JobUtils.JobStatus c : JobUtils.JobStatus.values()) System.out.println(c);
public static JobUtils.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 static JobUtils.JobStatus fromRunState(int state)
public static JobUtils.JobStatus fromJobState(Job.JobState jobState)
public boolean isRunning()
public boolean isFinished()
public boolean isStarted()