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