Interface SchedulerQueueManager<T extends SchedulerQueue,E extends ReservationSchedulerConfiguration>
- All Known Implementing Classes:
CapacitySchedulerQueueManager
@Private
@Unstable
public interface SchedulerQueueManager<T extends SchedulerQueue,E extends ReservationSchedulerConfiguration>
Context of the Queues in Scheduler.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a new queue to the existing queues.Get a queue matching the specified queue name.Get all the queues.Get the root queue.voidreinitializeQueues(E newConf) Reinitialize the queues.voidremoveQueue(String queueName) Remove the queue from the existing queue.
-
Method Details
-
getRootQueue
T getRootQueue()Get the root queue.- Returns:
- root queue
-
getQueues
Get all the queues.- Returns:
- a map contains all the queues as well as related queue names
-
removeQueue
Remove the queue from the existing queue.- Parameters:
queueName- the queue name
-
addQueue
Add a new queue to the existing queues.- Parameters:
queueName- the queue namequeue- the queue object
-
getQueue
Get a queue matching the specified queue name.- Parameters:
queueName- the queue name- Returns:
- a queue object
-
reinitializeQueues
Reinitialize the queues.- Parameters:
newConf- the configuration- Throws:
IOException- if fails to re-initialize queues
-