|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<JobUtils.JobStatus> org.springframework.data.hadoop.mapreduce.JobUtils.JobStatus
public static enum JobUtils.JobStatus
Status of a job. The enum tries to reuse as much as possible the internal Hadoop terminology.
Enum Constant Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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
Method Detail |
---|
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 name
java.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()
|
Spring for Apache Hadoop | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |