public class ClusterMetrics extends Object implements Writable
ClusterMetrics
provides clients with information such as:
构造器和说明 |
---|
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) |
限定符和类型 | 方法和说明 |
---|---|
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 . |
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)
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
在接口中 Writable
in
- DataInput
to deseriablize this object from.IOException
public void write(DataOutput out) throws IOException
Writable
out
.write
在接口中 Writable
out
- DataOuput
to serialize this object into.IOException
Copyright © 2009 The Apache Software Foundation