|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.mapred.JobStatus
public class JobStatus
Describes the current status of a job. This is not intended to be a comprehensive piece of data. For that, look at JobProfile.
Field Summary | |
---|---|
static int |
FAILED
|
static int |
PREP
|
static int |
RUNNING
|
static int |
SUCCEEDED
|
Constructor Summary | |
---|---|
JobStatus()
|
|
JobStatus(String jobid,
float mapProgress,
float reduceProgress,
int runState)
Create a job status object for a given jobid. |
Method Summary | |
---|---|
String |
getJobId()
|
int |
getRunState()
|
long |
getStartTime()
|
String |
getUsername()
|
float |
mapProgress()
|
void |
readFields(DataInput in)
Reads the fields of this object from in . |
float |
reduceProgress()
|
void |
setRunState(int state)
Change the current run state of the job. |
void |
write(DataOutput out)
Writes the fields of this object to out . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int RUNNING
public static final int SUCCEEDED
public static final int FAILED
public static final int PREP
Constructor Detail |
---|
public JobStatus()
public JobStatus(String jobid, float mapProgress, float reduceProgress, int runState)
jobid
- The jobid of the jobmapProgress
- The progress made on the mapsreduceProgress
- The progress made on the reducesrunState
- The current state of the jobMethod Detail |
---|
public String getJobId()
public float mapProgress()
public float reduceProgress()
public int getRunState()
public void setRunState(int state)
public long getStartTime()
public String getUsername()
public void write(DataOutput out) throws IOException
Writable
out
.
write
in interface Writable
IOException
public void readFields(DataInput in) throws IOException
Writable
in
. For efficiency,
implementations should attempt to re-use storage in the existing object
where possible.
readFields
in interface Writable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |