org.apache.hadoop.mapred
Class TaskReport

java.lang.Object
  extended by org.apache.hadoop.mapred.TaskReport
All Implemented Interfaces:
Writable

public class TaskReport
extends Object
implements Writable

A report on the state of a task.


Constructor Summary
TaskReport()
           
 
Method Summary
 Counters getCounters()
          A table of counters.
 String[] getDiagnostics()
          A list of error messages.
 long getFinishTime()
          Get finish time of task.
 float getProgress()
          The amount completed, between zero and one.
 long getStartTime()
          Get start time of task.
 String getState()
          The most recent state, reported by a Reporter.
 String getTaskId()
          Deprecated. use getTaskID() instead
 TaskID getTaskID()
          The id of the task.
 void readFields(DataInput in)
          Deserialize the fields of this object from in.
 void write(DataOutput out)
          Serialize the fields of this object to out.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskReport

public TaskReport()
Method Detail

getTaskId

@Deprecated
public String getTaskId()
Deprecated. use getTaskID() instead


getTaskID

public TaskID getTaskID()
The id of the task.


getProgress

public float getProgress()
The amount completed, between zero and one.


getState

public String getState()
The most recent state, reported by a Reporter.


getDiagnostics

public String[] getDiagnostics()
A list of error messages.


getCounters

public Counters getCounters()
A table of counters.


getFinishTime

public long getFinishTime()
Get finish time of task.

Returns:
0, if finish time was not set else returns finish time.

getStartTime

public long getStartTime()
Get start time of task.

Returns:
0 if start time was not set, else start time.

write

public void write(DataOutput out)
           throws IOException
Description copied from interface: Writable
Serialize the fields of this object to out.

Specified by:
write in interface Writable
Parameters:
out - DataOuput to serialize this object into.
Throws:
IOException

readFields

public void readFields(DataInput in)
                throws IOException
Description copied from interface: Writable
Deserialize the fields of this object from in.

For efficiency, implementations should attempt to re-use storage in the existing object where possible.

Specified by:
readFields in interface Writable
Parameters:
in - DataInput to deseriablize this object from.
Throws:
IOException


Copyright © 2008 The Apache Software Foundation