|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.mapreduce.TaskReport
@InterfaceAudience.Private @InterfaceStability.Evolving public class TaskReport
A report on the state of a task.
Constructor Summary | |
---|---|
TaskReport()
|
|
TaskReport(TaskID taskid,
float progress,
String state,
String[] diagnostics,
TIPStatus currentStatus,
long startTime,
long finishTime,
Counters counters)
Creates a new TaskReport object |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
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> |
getRunningTaskAttemptIds()
Get the running task attempt IDs for this task |
long |
getStartTime()
Get start time of task. |
String |
getState()
The most recent state, reported by the Reporter. |
TaskAttemptID |
getSuccessfulTaskAttemptId()
Get the attempt ID that took this task to completion |
Counters |
getTaskCounters()
A table of counters. |
TaskID |
getTaskId()
The id of the task. |
int |
hashCode()
|
void |
readFields(DataInput in)
|
protected void |
setFinishTime(long finishTime)
set finish time of task. |
protected void |
setRunningTaskAttemptIds(Collection<TaskAttemptID> runningAttempts)
set running attempt(s) of the task. |
protected void |
setStartTime(long startTime)
set start time of the task. |
protected void |
setSuccessfulAttemptId(TaskAttemptID t)
set successful attempt ID of the task. |
void |
write(DataOutput out)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TaskReport()
public TaskReport(TaskID taskid, float progress, String state, String[] diagnostics, TIPStatus currentStatus, long startTime, long finishTime, Counters counters)
taskid
- progress
- state
- diagnostics
- currentStatus
- startTime
- finishTime
- counters
- Method Detail |
---|
public TaskID getTaskId()
public float getProgress()
public String getState()
public String[] getDiagnostics()
public Counters getTaskCounters()
public TIPStatus getCurrentStatus()
public long getFinishTime()
protected void setFinishTime(long finishTime)
finishTime
- finish time of task.public long getStartTime()
protected void setStartTime(long startTime)
protected void setSuccessfulAttemptId(TaskAttemptID t)
public TaskAttemptID getSuccessfulTaskAttemptId()
protected void setRunningTaskAttemptIds(Collection<TaskAttemptID> runningAttempts)
public Collection<TaskAttemptID> getRunningTaskAttemptIds()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void write(DataOutput out) throws IOException
write
in interface org.apache.hadoop.io.Writable
IOException
public void readFields(DataInput in) throws IOException
readFields
in interface org.apache.hadoop.io.Writable
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |