|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.mapred.TaskReport
public class TaskReport
A report on the state of a task.
Constructor Summary | |
---|---|
TaskReport()
|
Method Summary | |
---|---|
boolean |
equals(Object o)
|
Counters |
getCounters()
A table of counters. |
TIPStatus |
getCurrentStatus()
The current status |
String[] |
getDiagnostics()
A list of error messages. |
long |
getFinishTime()
Get finish time of task. |
float |
getProgress()
The amount completed, between zero and one. |
Collection<TaskAttemptID> |
getRunningTaskAttempts()
Get the running task attempt IDs for this task |
long |
getStartTime()
Get start time of task. |
String |
getState()
The most recent state, reported by a Reporter . |
TaskAttemptID |
getSuccessfulTaskAttempt()
Get the attempt ID that took this task to completion |
String |
getTaskId()
Deprecated. use getTaskID() instead |
TaskID |
getTaskID()
The id of the task. |
int |
hashCode()
|
void |
readFields(DataInput in)
Deserialize the fields of this object from in . |
void |
setRunningTaskAttempts(Collection<TaskAttemptID> runningAttempts)
set running attempt(s) of the task. |
void |
setSuccessfulAttempt(TaskAttemptID t)
set successful attempt ID of the task. |
void |
write(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 String getTaskId()
getTaskID()
instead
public TaskID getTaskID()
public float getProgress()
public String getState()
Reporter
.
public 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(Collection<TaskAttemptID> runningAttempts)
public Collection<TaskAttemptID> getRunningTaskAttempts()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void write(DataOutput out) throws IOException
Writable
out
.
write
in interface Writable
out
- DataOuput
to serialize this object into.
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
in
- DataInput
to deseriablize this object from.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |