public class TaskTrackerStatus extends Object implements Writable
| 限定符和类型 | 字段和说明 |
|---|---|
static org.apache.commons.logging.Log |
LOG |
static int |
UNAVAILABLE |
| 构造器和说明 |
|---|
TaskTrackerStatus() |
TaskTrackerStatus(String trackerName,
String host,
int httpPort,
List<TaskStatus> taskReports,
int taskFailures,
int dirFailures,
int maxMapTasks,
int maxReduceTasks) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
countMapTasks()
Get the number of running map tasks.
|
int |
countOccupiedMapSlots()
Get the number of occupied map slots.
|
int |
countOccupiedReduceSlots()
Get the number of occupied reduce slots.
|
int |
countReduceTasks()
Get the number of running reduce tasks.
|
int |
getAvailableMapSlots()
Get available map slots.
|
int |
getAvailableReduceSlots()
Get available reduce slots.
|
int |
getDirFailures()
Get the number of local directories that have failed on this tracker.
|
org.apache.hadoop.mapred.TaskTrackerStatus.TaskTrackerHealthStatus |
getHealthStatus()
Returns health status of the task tracker.
|
String |
getHost() |
int |
getHttpPort()
Get the port that this task tracker is serving http requests on.
|
long |
getLastSeen() |
int |
getMaxMapSlots()
Get the maximum map slots for this node.
|
int |
getMaxReduceSlots()
Get the maximum reduce slots for this node.
|
int |
getTaskFailures()
Get the number of tasks that have failed on this tracker.
|
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. |
public static final org.apache.commons.logging.Log LOG
public static final int UNAVAILABLE
public TaskTrackerStatus()
public TaskTrackerStatus(String trackerName, String host, int httpPort, List<TaskStatus> taskReports, int taskFailures, int dirFailures, int maxMapTasks, int maxReduceTasks)
public String getTrackerName()
public String getHost()
public int getHttpPort()
public int getTaskFailures()
public int getDirFailures()
public List<TaskStatus> getTaskReports()
TaskStatus object.TaskStatus representing
the current tasks at the TaskTracker.public int countMapTasks()
public int countOccupiedMapSlots()
public int getAvailableMapSlots()
public int countReduceTasks()
public int countOccupiedReduceSlots()
public int getAvailableReduceSlots()
public long getLastSeen()
public void setLastSeen(long lastSeen)
public int getMaxMapSlots()
public int getMaxReduceSlots()
public org.apache.hadoop.mapred.TaskTrackerStatus.TaskTrackerHealthStatus getHealthStatus()
public void write(DataOutput out) throws IOException
Writableout.write 在接口中 Writableout - DataOuput to serialize this object into.IOExceptionpublic void readFields(DataInput in) throws IOException
Writablein.
For efficiency, implementations should attempt to re-use storage in the existing object where possible.
readFields 在接口中 Writablein - DataInput to deseriablize this object from.IOExceptionCopyright © 2009 The Apache Software Foundation