java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.scheduler.QueueStateManager<T,E>

@Private @Unstable public class QueueStateManager<T extends SchedulerQueue,E extends ReservationSchedulerConfiguration> extends Object
QueueStateManager which can be used by Scheduler to manage the queue state.
  • Constructor Details

    • QueueStateManager

      public QueueStateManager()
  • Method Details

    • initialize

      public void initialize(SchedulerQueueManager<T,E> newQueueManager)
    • stopQueue

      public void stopQueue(String queueName) throws org.apache.hadoop.yarn.exceptions.YarnException
      Stop the queue.
      Parameters:
      queueName - the queue name
      Throws:
      org.apache.hadoop.yarn.exceptions.YarnException - if the queue does not exist
    • activateQueue

      public void activateQueue(String queueName) throws org.apache.hadoop.yarn.exceptions.YarnException
      Active the queue.
      Parameters:
      queueName - the queue name
      Throws:
      org.apache.hadoop.yarn.exceptions.YarnException - if the queue does not exist or the queue can not be activated.
    • canDelete

      public boolean canDelete(String queueName)
      Whether this queue can be deleted.
      Parameters:
      queueName - the queue name
      Returns:
      true if the queue can be deleted