Package org.apache.hadoop.mapreduce
Class TaskTrackerInfo
java.lang.Object
org.apache.hadoop.mapreduce.TaskTrackerInfo
- All Implemented Interfaces:
Writable
Information about TaskTracker.
-
Constructor Summary
ConstructorsConstructorDescriptionTaskTrackerInfo(String name) TaskTrackerInfo(String name, String reasonForBlacklist, String report) -
Method Summary
Modifier and TypeMethodDescriptionGets a descriptive report about why the tasktracker was blacklisted.Gets the reason for which the tasktracker was blacklisted.Gets the tasktracker's name.booleanWhether tracker is blacklistedvoidreadFields(DataInput in) Deserialize the fields of this object fromin.voidwrite(DataOutput out) Serialize the fields of this object toout.
-
Constructor Details
-
TaskTrackerInfo
public TaskTrackerInfo() -
TaskTrackerInfo
-
TaskTrackerInfo
-
-
Method Details
-
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
Gets the reason for which the tasktracker was blacklisted.- Returns:
- reason which tracker was blacklisted
-
getBlacklistReport
Gets a descriptive report about why the tasktracker was blacklisted.- Returns:
- report describing why the tasktracker was blacklisted.
-
readFields
Description copied from interface:WritableDeserialize the fields of this object fromin.For efficiency, implementations should attempt to re-use storage in the existing object where possible.
- Specified by:
readFieldsin interfaceWritable- Parameters:
in-DataInputto deseriablize this object from.- Throws:
IOException- any other problem for readFields.
-
write
Description copied from interface:WritableSerialize the fields of this object toout.- Specified by:
writein interfaceWritable- Parameters:
out-DataOuputto serialize this object into.- Throws:
IOException- any other problem for write.
-