@InterfaceAudience.Public @InterfaceStability.Evolving public class ClusterMetrics extends Object implements Writable
ClusterMetrics
provides clients with information such as:
Clients can query for the latest ClusterMetrics
, via
Cluster.getClusterStatus()
.
Cluster
Constructor and Description |
---|
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 numDecommissionedNodes) |
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) |
Modifier and Type | Method and Description |
---|---|
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 numDecommissionedNodes)
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
in interface Writable
in
- DataInput
to deseriablize this object from.IOException
- any other problem for readFields.public void write(DataOutput out) throws IOException
Writable
out
.write
in interface Writable
out
- DataOuput
to serialize this object into.IOException
- any other problem for write.Copyright © 2024 Apache Software Foundation. All rights reserved.