|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.mapred.TaskTrackerStatus
public class TaskTrackerStatus
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.
Nested Class Summary | |
---|---|
static class |
TaskTrackerStatus.ResourceStatus
Class representing a collection of resources on this tasktracker. |
Constructor Summary | |
---|---|
TaskTrackerStatus()
|
|
TaskTrackerStatus(String trackerName,
String host,
int httpPort,
List<TaskStatus> taskReports,
int failures,
int maxMapTasks,
int maxReduceTasks)
|
Method Summary | |
---|---|
int |
countMapTasks()
Return the current MapTask count |
int |
countReduceTasks()
Return the current ReduceTask count |
int |
getFailures()
Get the number of tasks that have failed on this tracker. |
String |
getHost()
|
int |
getHttpPort()
Get the port that this task tracker is serving http requests on. |
long |
getLastSeen()
|
int |
getMaxMapTasks()
Get the maximum concurrent tasks for this node. |
int |
getMaxReduceTasks()
|
TaskTrackerStatus.ResourceStatus |
getResourceStatus()
Return the TaskTrackerStatus.ResourceStatus object configured with this
status. |
List<TaskStatus> |
getTaskReports()
Get the current tasks at the TaskTracker. |
String |
getTrackerName()
|
void |
readFields(DataInput in)
Deserialize the fields of this object from in . |
void |
setLastSeen(long lastSeen)
|
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 |
---|
public TaskTrackerStatus()
public TaskTrackerStatus(String trackerName, String host, int httpPort, List<TaskStatus> taskReports, int failures, int maxMapTasks, int maxReduceTasks)
Method Detail |
---|
public String getTrackerName()
public String getHost()
public int getHttpPort()
public int getFailures()
public List<TaskStatus> getTaskReports()
TaskStatus
object.
TaskStatus
representing
the current tasks at the TaskTracker.public int countMapTasks()
public int countReduceTasks()
public long getLastSeen()
public void setLastSeen(long lastSeen)
public int getMaxMapTasks()
public int getMaxReduceTasks()
public TaskTrackerStatus.ResourceStatus getResourceStatus()
TaskTrackerStatus.ResourceStatus
object configured with this
status.
public void write(DataOutput out) throws IOException
Writable
out
.
write
in interface Writable
out
- DataOuput
to serialize this object into.
IOException
public void readFields(DataInput in) throws IOException
Writable
in
.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields
in interface Writable
in
- DataInput
to deseriablize this object from.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |