Class CSQueueMetricsForCustomResources
java.lang.Object
org.apache.hadoop.yarn.metrics.CustomResourceMetrics
org.apache.hadoop.yarn.server.resourcemanager.scheduler.QueueMetricsForCustomResources
org.apache.hadoop.yarn.server.resourcemanager.scheduler.CSQueueMetricsForCustomResources
This class is a main entry-point for any kind of CSQueueMetrics for
custom resources.
It provides increase and decrease methods for all types of metrics.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetGuaranteedCapacity(org.apache.hadoop.yarn.api.records.Resource res) voidsetMaxCapacity(org.apache.hadoop.yarn.api.records.Resource res) Methods inherited from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.QueueMetricsForCustomResources
decreasePending, decreasePending, decreaseReserved, getPendingValues, getReservedValues, increaseAggregatedPreempted, increaseAggregatedPreemptedSeconds, increasePending, increaseReservedMethods inherited from class org.apache.hadoop.yarn.metrics.CustomResourceMetrics
decreaseAllocated, decreaseAllocated, getAllocatedValues, getAvailable, getAvailableValues, increaseAllocated, increaseAllocated, initAndGetCustomResources, registerCustomResources, registerCustomResources, setAvailable
-
Constructor Details
-
CSQueueMetricsForCustomResources
public CSQueueMetricsForCustomResources()
-
-
Method Details
-
setGuaranteedCapacity
public void setGuaranteedCapacity(org.apache.hadoop.yarn.api.records.Resource res) -
setMaxCapacity
public void setMaxCapacity(org.apache.hadoop.yarn.api.records.Resource res) -
getGuaranteedCapacity
-
getMaxCapacity
-