org.apache.hadoop.mapred
Class TaskReport

java.lang.Object
  extended byorg.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
 String[] getDiagnostics()
          A list of error messages.
 float getProgress()
          The amount completed, between zero and one.
 String getState()
          The most recent state, reported by a Reporter.
 String getTaskId()
          The id of the task.
 void readFields(DataInput in)
          Reads the fields of this object from in.
 void write(DataOutput out)
          Writes 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

public String 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.


write

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

Specified by:
write in interface Writable
Throws:
IOException

readFields

public void readFields(DataInput in)
                throws IOException
Description copied from interface: Writable
Reads 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
Throws:
IOException


Copyright © 2006 The Apache Software Foundation