public class ClusterStatus extends Object implements Writable
ClusterStatus provides clients with information such as:
JobTracker.
Clients can query for the latest ClusterStatus, via
JobClient.getClusterStatus().
JobClient| 限定符和类型 | 字段和说明 |
|---|---|
static long |
UNINITIALIZED_MEMORY_VALUE |
| 限定符和类型 | 方法和说明 |
|---|---|
Collection<String> |
getActiveTrackerNames()
Get the names of active task trackers in the cluster.
|
Collection<String> |
getBlacklistedTrackerNames()
Get the names of blacklisted task trackers in the cluster.
|
int |
getBlacklistedTrackers()
Get the number of blacklisted task trackers in the cluster.
|
Collection<String> |
getGraylistedTrackerNames()
Get the names of graylisted task trackers in the cluster.
|
int |
getGraylistedTrackers()
Get the number of graylisted task trackers in the cluster.
|
JobTracker.State |
getJobTrackerState()
Get the current state of the
JobTracker,
as JobTracker.State |
int |
getMapTasks()
Get the number of currently running map tasks in the cluster.
|
int |
getMaxMapTasks()
Get the maximum capacity for running map tasks in the cluster.
|
long |
getMaxMemory()
已过时。
|
int |
getMaxReduceTasks()
Get the maximum capacity for running reduce tasks in the cluster.
|
int |
getNumExcludedNodes()
Get the number of excluded hosts in the cluster.
|
int |
getReduceTasks()
Get the number of currently running reduce tasks in the cluster.
|
int |
getTaskTrackers()
Get the number of active task trackers in the cluster.
|
long |
getTTExpiryInterval()
Get the tasktracker expiry interval for the cluster
|
long |
getUsedMemory()
已过时。
|
void |
readFields(DataInput in)
Deserialize the fields of this object from
in. |
void |
write(DataOutput out)
Serialize the fields of this object to
out. |
public static final long UNINITIALIZED_MEMORY_VALUE
public int getTaskTrackers()
public Collection<String> getActiveTrackerNames()
public Collection<String> getBlacklistedTrackerNames()
public int getBlacklistedTrackers()
public Collection<String> getGraylistedTrackerNames()
public int getGraylistedTrackers()
public int getNumExcludedNodes()
public long getTTExpiryInterval()
public int getMapTasks()
public int getReduceTasks()
public int getMaxMapTasks()
public int getMaxReduceTasks()
public JobTracker.State getJobTrackerState()
JobTracker,
as JobTracker.StateJobTracker.@Deprecated public long getUsedMemory()
JobTrackerJobTracker@Deprecated public long getMaxMemory()
JobTrackerJobTrackerpublic 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