Class CalculationContext
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.CalculationContext
A storage class that wraps arguments used in a resource calculation iteration.
-
Constructor Summary
ConstructorsConstructorDescriptionCalculationContext(String resourceName, QueueCapacityVector.ResourceUnitCapacityType capacityType, CSQueue queue) -
Method Summary
Modifier and TypeMethodDescriptionA shorthand to return the maximum capacity vector entry for the currently evaluated child and resource name.A shorthand to return the minimum capacity vector entry for the currently evaluated child and resource name.getQueue()
-
Constructor Details
-
CalculationContext
public CalculationContext(String resourceName, QueueCapacityVector.ResourceUnitCapacityType capacityType, CSQueue queue)
-
-
Method Details
-
getResourceName
-
getCapacityType
-
getQueue
-
getCurrentMinimumCapacityEntry
A shorthand to return the minimum capacity vector entry for the currently evaluated child and resource name.- Parameters:
label- node label- Returns:
- capacity vector entry
-
getCurrentMaximumCapacityEntry
A shorthand to return the maximum capacity vector entry for the currently evaluated child and resource name.- Parameters:
label- node label- Returns:
- capacity vector entry
-