Class TaskTrackerInfo

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

@Public @Evolving public class TaskTrackerInfo extends Object implements Writable
Information about TaskTracker.
  • Constructor Details

    • TaskTrackerInfo

      public TaskTrackerInfo()
    • TaskTrackerInfo

      public TaskTrackerInfo(String name)
    • TaskTrackerInfo

      public TaskTrackerInfo(String name, String reasonForBlacklist, String report)
  • Method Details

    • 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 - any other problem for readFields.
    • 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 - any other problem for write.