Class QueueCapacityUpdateContext
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.QueueCapacityUpdateContext
A storage that encapsulates intermediate calculation values throughout a
full queue capacity update phase.
-
Constructor Summary
ConstructorsConstructorDescriptionQueueCapacityUpdateContext(org.apache.hadoop.yarn.api.records.Resource updatedClusterResource, RMNodeLabelsManager labelsManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddUpdateWarning(QueueUpdateWarning warning) Adds an update warning to the context.org.apache.hadoop.yarn.api.records.ResourceReturns the overall cluster resource available for the update phase of empty label.org.apache.hadoop.yarn.api.records.ResourcegetUpdatedClusterResource(String label) Returns the overall cluster resource available for the update phase.Returns all update warnings occurred in this update phase.
-
Constructor Details
-
QueueCapacityUpdateContext
public QueueCapacityUpdateContext(org.apache.hadoop.yarn.api.records.Resource updatedClusterResource, RMNodeLabelsManager labelsManager)
-
-
Method Details
-
getUpdatedClusterResource
Returns the overall cluster resource available for the update phase.- Parameters:
label- node label- Returns:
- cluster resource
-
getUpdatedClusterResource
public org.apache.hadoop.yarn.api.records.Resource getUpdatedClusterResource()Returns the overall cluster resource available for the update phase of empty label.- Returns:
- cluster resource
-
addUpdateWarning
Adds an update warning to the context.- Parameters:
warning- warning during update phase
-
getUpdateWarnings
Returns all update warnings occurred in this update phase.- Returns:
- update warnings
-