public class QueueCapacityUpdateContext extends Object
Constructor and Description |
---|
QueueCapacityUpdateContext(org.apache.hadoop.yarn.api.records.Resource updatedClusterResource,
RMNodeLabelsManager labelsManager) |
Modifier and Type | Method and Description |
---|---|
void |
addUpdateWarning(QueueUpdateWarning warning)
Adds an update warning to the context.
|
org.apache.hadoop.yarn.api.records.Resource |
getUpdatedClusterResource()
Returns the overall cluster resource available for the update phase of empty label.
|
org.apache.hadoop.yarn.api.records.Resource |
getUpdatedClusterResource(String label)
Returns the overall cluster resource available for the update phase.
|
List<QueueUpdateWarning> |
getUpdateWarnings()
Returns all update warnings occurred in this update phase.
|
public QueueCapacityUpdateContext(org.apache.hadoop.yarn.api.records.Resource updatedClusterResource, RMNodeLabelsManager labelsManager)
public org.apache.hadoop.yarn.api.records.Resource getUpdatedClusterResource(String label)
label
- node labelpublic org.apache.hadoop.yarn.api.records.Resource getUpdatedClusterResource()
public void addUpdateWarning(QueueUpdateWarning warning)
warning
- warning during update phasepublic List<QueueUpdateWarning> getUpdateWarnings()
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.