All Implemented Interfaces:
CSQueue, Queue, SchedulerQueue<CSQueue>

public class PlanQueue extends AbstractManagedParentQueue
This represents a dynamic queue managed by the ReservationSystem. From the user perspective this is equivalent to a LeafQueue that respect reservations, but functionality wise is a sub-class of ParentQueue
  • Constructor Details

  • Method Details

    • reinitialize

      public void reinitialize(CSQueue newlyParsedQueue, org.apache.hadoop.yarn.api.records.Resource clusterResource) throws IOException
      Description copied from interface: CSQueue
      Reinitialize the queue.
      Specified by:
      reinitialize in interface CSQueue
      Overrides:
      reinitialize in class AbstractManagedParentQueue
      Parameters:
      newlyParsedQueue - new queue to re-initalize from
      clusterResource - resources in the cluster
      Throws:
      IOException - an I/O exception has occurred.
    • initializeDefaultInternalQueue

      public ReservationQueue initializeDefaultInternalQueue() throws IOException
      Throws:
      IOException
    • getMaxApplicationsForReservations

      public int getMaxApplicationsForReservations()
      Number of maximum applications for each of the reservations in this Plan.
      Returns:
      maxAppsForreservation
    • getMaxApplicationsPerUserForReservation

      public int getMaxApplicationsPerUserForReservation()
      Number of maximum applications per user for each of the reservations in this Plan.
      Returns:
      maxAppsPerUserForreservation
    • getUserLimitForReservation

      public float getUserLimitForReservation()
      User limit value for each of the reservations in this Plan.
      Returns:
      userLimit
    • getUserLimitFactor

      public float getUserLimitFactor()
      User limit factor value for each of the reservations in this Plan.
      Returns:
      userLimitFactor
    • showReservationsAsQueues

      public boolean showReservationsAsQueues()
      Determine whether to hide/show the ReservationQueues.
      Returns:
      true, show ReservationQueues; false, hide ReservationQueues.