Class RootCalculationDriver
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.ResourceCalculationDriver
org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.RootCalculationDriver
A special case that contains the resource calculation of the root queue.
-
Field Summary
Fields inherited from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.ResourceCalculationDriver
batchRemainingResourcePerLabel, calculators, definedResources, normalizedResourceRatioPerLabel, overallRemainingResourcePerLabel, queue, roundingStrategy, sumWeightsPerLabel, updateContext, usedResourceByCurrentCalculatorPerLabel -
Constructor Summary
ConstructorsConstructorDescriptionRootCalculationDriver(CSQueue rootQueue, QueueCapacityUpdateContext updateContext, AbstractQueueCapacityCalculator rootCalculator, Collection<String> definedResources) -
Method Summary
Modifier and TypeMethodDescriptionvoidCalculates and sets the minimum and maximum effective resources for all children under the parent queue with which this driver was initialized.Methods inherited from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.ResourceCalculationDriver
getBatchRemainingResource, getChildQueues, getNormalizedResourceRatios, getParentAbsoluteMaxCapacity, getParentAbsoluteMinCapacity, getQueue, getRemainingRatioOfResource, getSumWeightsByResource, getUpdateContext, incrementWeight
-
Constructor Details
-
RootCalculationDriver
public RootCalculationDriver(CSQueue rootQueue, QueueCapacityUpdateContext updateContext, AbstractQueueCapacityCalculator rootCalculator, Collection<String> definedResources)
-
-
Method Details
-
calculateResources
public void calculateResources()Description copied from class:ResourceCalculationDriverCalculates and sets the minimum and maximum effective resources for all children under the parent queue with which this driver was initialized.- Overrides:
calculateResourcesin classResourceCalculationDriver
-