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
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getActiveTrackerNames()
Get the names of task trackers in the cluster.
|
Collection<String> |
getBlacklistedTrackerNames()
Get the names of task trackers in the cluster.
|
int |
getBlacklistedTrackers()
Get the number of blacklisted 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()
Get the maximum configured heap memory that can be used by the
JobTracker |
int |
getMaxReduceTasks()
Get the maximum capacity for running reduce tasks in the cluster.
|
int |
getReduceTasks()
Get the number of currently running reduce tasks in the cluster.
|
int |
getTaskTrackers()
Get the number of task trackers in the cluster.
|
long |
getTTExpiryInterval()
Get the tasktracker expiry interval for the cluster
|
long |
getUsedMemory()
Get the total heap memory used by the
JobTracker |
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 int getTaskTrackers()
public Collection<String> getActiveTrackerNames()
public Collection<String> getBlacklistedTrackerNames()
public int getBlacklistedTrackers()
public long getTTExpiryInterval()
public int getMapTasks()
public int getReduceTasks()
public int getMaxMapTasks()
public int getMaxReduceTasks()
public JobTracker.State getJobTrackerState()
JobTracker
,
as JobTracker.State
JobTracker
.public long getUsedMemory()
JobTracker
JobTracker
public long getMaxMemory()
JobTracker
JobTracker
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
Copyright © 2010 The Apache Software Foundation