public static enum JobUtils.JobStatus extends java.lang.Enum<JobUtils.JobStatus>
Enum Constant and Description |
---|
DEFINED
The job is has been/is being defined or configured.
|
FAILED
The execution has failed.
|
KILLED
The execution was cancelled or killed.
|
PREPARING
The job has been submited to the tracker and its execution
is being prepared.
|
RUNNING
The job is actually running.
|
SUCCEEDED
The execution has completed successfully.
|
UNKNOWN
The 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(org.apache.hadoop.mapreduce.Job.JobState jobState) |
static JobUtils.JobStatus |
fromRunState(int state) |
boolean |
isFinished() |
boolean |
isRunning() |
boolean |
isStarted() |
static JobUtils.JobStatus |
valueOf(java.lang.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(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 JobUtils.JobStatus fromRunState(int state)
public static JobUtils.JobStatus fromJobState(org.apache.hadoop.mapreduce.Job.JobState jobState)
public boolean isRunning()
public boolean isFinished()
public boolean isStarted()