|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.mapred.TaskReport
public class TaskReport
A report on the state of a task.
| Constructor Summary | |
|---|---|
TaskReport()
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
|
Counters |
getCounters()
A table of counters. |
TIPStatus |
getCurrentStatus()
The current status |
java.lang.String[] |
getDiagnostics()
A list of error messages. |
long |
getFinishTime()
Get finish time of task. |
float |
getProgress()
The amount completed, between zero and one. |
java.util.Collection<TaskAttemptID> |
getRunningTaskAttempts()
Get the running task attempt IDs for this task |
long |
getStartTime()
Get start time of task. |
java.lang.String |
getState()
The most recent state, reported by a Reporter. |
TaskAttemptID |
getSuccessfulTaskAttempt()
Get the attempt ID that took this task to completion |
java.lang.String |
getTaskId()
Deprecated. use getTaskID() instead |
TaskID |
getTaskID()
The id of the task. |
int |
hashCode()
|
void |
readFields(java.io.DataInput in)
Deserialize the fields of this object from in. |
void |
setRunningTaskAttempts(java.util.Collection<TaskAttemptID> runningAttempts)
set running attempt(s) of the task. |
void |
setSuccessfulAttempt(TaskAttemptID t)
set successful attempt ID of the task. |
void |
write(java.io.DataOutput out)
Serialize the fields of this object to out. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TaskReport()
| Method Detail |
|---|
@Deprecated public java.lang.String getTaskId()
getTaskID() instead
public TaskID getTaskID()
public float getProgress()
public java.lang.String getState()
Reporter.
public java.lang.String[] getDiagnostics()
public Counters getCounters()
public TIPStatus getCurrentStatus()
public long getFinishTime()
public long getStartTime()
public void setSuccessfulAttempt(TaskAttemptID t)
public TaskAttemptID getSuccessfulTaskAttempt()
public void setRunningTaskAttempts(java.util.Collection<TaskAttemptID> runningAttempts)
public java.util.Collection<TaskAttemptID> getRunningTaskAttempts()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
public void write(java.io.DataOutput out)
throws java.io.IOException
Writableout.
write in interface Writableout - DataOuput to serialize this object into.
java.io.IOException
public void readFields(java.io.DataInput in)
throws java.io.IOException
Writablein.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields in interface Writablein - DataInput to deseriablize this object from.
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||