org.apache.hadoop.mapreduce
Class TaskTrackerInfo

java.lang.Object
  extended by org.apache.hadoop.mapreduce.TaskTrackerInfo
All Implemented Interfaces:
Writable

@InterfaceAudience.Public
@InterfaceStability.Evolving
public class TaskTrackerInfo
extends Object
implements Writable

Information about TaskTracker.


Constructor Summary
TaskTrackerInfo()
           
TaskTrackerInfo(String name)
           
TaskTrackerInfo(String name, String reasonForBlacklist, String report)
           
 
Method Summary
 String getBlacklistReport()
          Gets a descriptive report about why the tasktracker was blacklisted.
 String getReasonForBlacklist()
          Gets the reason for which the tasktracker was blacklisted.
 String getTaskTrackerName()
          Gets the tasktracker's name.
 boolean isBlacklisted()
          Whether tracker is blacklisted
 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

TaskTrackerInfo

public TaskTrackerInfo()

TaskTrackerInfo

public TaskTrackerInfo(String name)

TaskTrackerInfo

public TaskTrackerInfo(String name,
                       String reasonForBlacklist,
                       String report)
Method Detail

getTaskTrackerName

public String getTaskTrackerName()
Gets the tasktracker's name.

Returns:
tracker's name.

isBlacklisted

public boolean isBlacklisted()
Whether tracker is blacklisted

Returns:
true if tracker is blacklisted false otherwise

getReasonForBlacklist

public String getReasonForBlacklist()
Gets the reason for which the tasktracker was blacklisted.

Returns:
reason which tracker was blacklisted

getBlacklistReport

public String getBlacklistReport()
Gets a descriptive report about why the tasktracker was blacklisted.

Returns:
report describing why the tasktracker was blacklisted.

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

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


Copyright © 2012 Apache Software Foundation. All Rights Reserved.