Class QueueCapacityUpdateContext

java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.QueueCapacityUpdateContext

public class QueueCapacityUpdateContext extends Object
A storage that encapsulates intermediate calculation values throughout a full queue capacity update phase.
  • Constructor Details

    • QueueCapacityUpdateContext

      public QueueCapacityUpdateContext(org.apache.hadoop.yarn.api.records.Resource updatedClusterResource, RMNodeLabelsManager labelsManager)
  • Method Details

    • getUpdatedClusterResource

      public org.apache.hadoop.yarn.api.records.Resource getUpdatedClusterResource(String label)
      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

      public void addUpdateWarning(QueueUpdateWarning warning)
      Adds an update warning to the context.
      Parameters:
      warning - warning during update phase
    • getUpdateWarnings

      public List<QueueUpdateWarning> getUpdateWarnings()
      Returns all update warnings occurred in this update phase.
      Returns:
      update warnings