java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSQueue
org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSParentQueue
All Implemented Interfaces:
Schedulable, Queue

@Private @Unstable public class FSParentQueue extends FSQueue
  • Constructor Details

  • Method Details

    • getMaximumContainerAllocation

      public org.apache.hadoop.yarn.api.records.Resource getMaximumContainerAllocation()
      Specified by:
      getMaximumContainerAllocation in class FSQueue
    • getDemand

      public org.apache.hadoop.yarn.api.records.Resource getDemand()
      Description copied from interface: Schedulable
      Maximum number of resources required by this Schedulable. This is defined as number of currently utilized resources + number of unlaunched resources (that are either not yet launched or need to be speculated).
      Returns:
      resources required by this Schedulable.
    • updateDemand

      public void updateDemand()
      Description copied from interface: Schedulable
      Refresh the Schedulable's demand and those of its children if any.
    • getQueueUserAclInfo

      public List<org.apache.hadoop.yarn.api.records.QueueUserACLInfo> getQueueUserAclInfo(org.apache.hadoop.security.UserGroupInformation user)
      Description copied from interface: Queue
      Get queue ACLs for given user.
      Parameters:
      user - username
      Returns:
      queue ACLs for user
    • assignContainer

      public org.apache.hadoop.yarn.api.records.Resource assignContainer(FSSchedulerNode node)
      Description copied from interface: Schedulable
      Assign a container on this node if possible, and return the amount of resources assigned.
      Parameters:
      node - FSSchedulerNode.
      Returns:
      the amount of resources assigned.
    • getChildQueues

      public List<FSQueue> getChildQueues()
      Description copied from class: FSQueue
      Gets the children of this queue, if any.
      Specified by:
      getChildQueues in class FSQueue
      Returns:
      the children of this queue.
    • getNumRunnableApps

      public int getNumRunnableApps()
      Description copied from class: FSQueue
      Return the number of apps for which containers can be allocated. Includes apps in subqueues.
      Specified by:
      getNumRunnableApps in class FSQueue
      Returns:
      the number of apps.
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in class FSQueue
    • collectSchedulerApplications

      public void collectSchedulerApplications(Collection<org.apache.hadoop.yarn.api.records.ApplicationAttemptId> apps)
      Description copied from class: FSQueue
      Adds all applications in the queue and its subqueues to the given collection.
      Specified by:
      collectSchedulerApplications in class FSQueue
      Parameters:
      apps - the collection to add the applications to
    • getAbstractUsersManager

      public ActiveUsersManager getAbstractUsersManager()
    • recoverContainer

      public void recoverContainer(org.apache.hadoop.yarn.api.records.Resource clusterResource, SchedulerApplicationAttempt schedulerAttempt, RMContainer rmContainer)
      Description copied from interface: Queue
      Recover the state of the queue for a given container.
      Parameters:
      clusterResource - the resource of the cluster
      schedulerAttempt - the application for which the container was allocated
      rmContainer - the container that was recovered.
    • dumpStateInternal

      protected void dumpStateInternal(StringBuilder sb)
      Description copied from class: FSQueue
      Recursively dump states of all queues.
      Specified by:
      dumpStateInternal in class FSQueue
      Parameters:
      sb - the {code StringBuilder} which holds queue states