public class QueueCapacityUpdateContext
extends java.lang.Object
| Constructor | Description |
|---|---|
QueueCapacityUpdateContext(org.apache.hadoop.yarn.api.records.Resource updatedClusterResource,
RMNodeLabelsManager labelsManager) |
| Modifier and Type | Method | 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(java.lang.String label) |
Returns the overall cluster resource available for the update phase.
|
java.util.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(java.lang.String label)
label - node labelpublic org.apache.hadoop.yarn.api.records.Resource getUpdatedClusterResource()
public void addUpdateWarning(QueueUpdateWarning warning)
warning - warning during update phasepublic java.util.List<QueueUpdateWarning> getUpdateWarnings()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.