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

public class CSQueueStore extends Object
  • Constructor Details

    • CSQueueStore

      public CSQueueStore()
  • Method Details

    • add

      public void add(CSQueue queue)
      Method for adding a queue to the store.
      Parameters:
      queue - Queue to be added
    • remove

      public void remove(CSQueue queue)
      Method for removing a queue from the store.
      Parameters:
      queue - The queue to be removed
    • remove

      public void remove(String name)
      Method for removing a queue from the store by name.
      Parameters:
      name - A deterministic name for the queue to be removed
    • get

      public CSQueue get(String name)
      Getter method for the queue it can find queues by both full and short names.
      Parameters:
      name - Full or short name of the queue
      Returns:
      the queue
    • clear

      public void clear()
      Clears the store, removes all queue references.
    • getQueues

      public Collection<CSQueue> getQueues()
      Returns all queues as a list.
      Returns:
      List containing all the queues