org.apache.nutch.mapReduce
Class TaskTrackerStatus

java.lang.Object
  extended byorg.apache.nutch.mapReduce.TaskTrackerStatus
All Implemented Interfaces:
Writable

public class TaskTrackerStatus
extends Object
implements Writable

A TaskTrackerStatus is a MapReduce primitive. Keeps info on a TaskTracker. The JobTracker maintains a set of the most recent TaskTrackerStatus objects for each unique TaskTracker it knows about.

Author:
Mike Cafarella

Constructor Summary
TaskTrackerStatus()
           
TaskTrackerStatus(String trackerName, String host, int port, Vector taskReports)
           
 
Method Summary
 String getHost()
           
 long getLastSeen()
           
 int getPort()
           
 String getTrackerName()
           
 void readFields(DataInput in)
          Reads the fields of this object from in.
 void setLastSeen(long lastSeen)
           
 Iterator taskReports()
          All current tasks at the TaskTracker.
 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

TaskTrackerStatus

public TaskTrackerStatus()

TaskTrackerStatus

public TaskTrackerStatus(String trackerName,
                         String host,
                         int port,
                         Vector taskReports)
Method Detail

getTrackerName

public String getTrackerName()

getHost

public String getHost()

getPort

public int getPort()

taskReports

public Iterator taskReports()
All current tasks at the TaskTracker. Tasks are tracked by a TaskStatus object.


getLastSeen

public long getLastSeen()

setLastSeen

public void setLastSeen(long lastSeen)

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