|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hadoop.mapreduce.ClusterMetrics
public class ClusterMetrics
Status information on the current state of the Map-Reduce cluster.
ClusterMetrics
provides clients with information such as:
Constructor Summary | |
---|---|
ClusterMetrics()
|
|
ClusterMetrics(int runningMaps,
int runningReduces,
int occupiedMapSlots,
int occupiedReduceSlots,
int reservedMapSlots,
int reservedReduceSlots,
int mapSlots,
int reduceSlots,
int totalJobSubmissions,
int numTrackers,
int numBlacklistedTrackers,
int numGraylistedTrackers,
int numDecommissionedNodes)
|
Method Summary | |
---|---|
int |
getBlackListedTaskTrackerCount()
Get the number of blacklisted trackers in the cluster. |
int |
getDecommissionedTaskTrackerCount()
Get the number of decommissioned trackers in the cluster. |
int |
getGrayListedTaskTrackerCount()
Get the number of graylisted trackers in the cluster. |
int |
getMapSlotCapacity()
Get the total number of map slots in the cluster. |
int |
getOccupiedMapSlots()
Get number of occupied map slots in the cluster. |
int |
getOccupiedReduceSlots()
Get the number of occupied reduce slots in the cluster. |
int |
getReduceSlotCapacity()
Get the total number of reduce slots in the cluster. |
int |
getReservedMapSlots()
Get number of reserved map slots in the cluster. |
int |
getReservedReduceSlots()
Get the number of reserved reduce slots in the cluster. |
int |
getRunningMaps()
Get the number of running map tasks in the cluster. |
int |
getRunningReduces()
Get the number of running reduce tasks in the cluster. |
int |
getTaskTrackerCount()
Get the number of active trackers in the cluster. |
int |
getTotalJobSubmissions()
Get the total number of job submissions in the cluster. |
void |
readFields(DataInput in)
Deserialize the fields of this object from in . |
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 ClusterMetrics()
public ClusterMetrics(int runningMaps, int runningReduces, int occupiedMapSlots, int occupiedReduceSlots, int reservedMapSlots, int reservedReduceSlots, int mapSlots, int reduceSlots, int totalJobSubmissions, int numTrackers, int numBlacklistedTrackers, int numGraylistedTrackers, int numDecommissionedNodes)
Method Detail |
---|
public int getRunningMaps()
public int getRunningReduces()
public int getOccupiedMapSlots()
public int getOccupiedReduceSlots()
public int getReservedMapSlots()
public int getReservedReduceSlots()
public int getMapSlotCapacity()
public int getReduceSlotCapacity()
public int getTotalJobSubmissions()
public int getTaskTrackerCount()
public int getBlackListedTaskTrackerCount()
public int getGrayListedTaskTrackerCount()
public int getDecommissionedTaskTrackerCount()
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
public void write(DataOutput out) throws IOException
Writable
out
.
write
in interface Writable
out
- DataOuput
to serialize this object into.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |