public class TaskReport extends Object implements org.apache.hadoop.io.Writable
| Constructor and Description |
|---|
TaskReport() |
| Modifier and Type | Method and Description |
|---|---|
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) |
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) |
@Deprecated public String getTaskId()
getTaskID() insteadpublic TaskID getTaskID()
public float getProgress()
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 void write(DataOutput out) throws IOException
write in interface org.apache.hadoop.io.WritableIOExceptionpublic void readFields(DataInput in) throws IOException
readFields in interface org.apache.hadoop.io.WritableIOExceptionCopyright © 2009 The Apache Software Foundation