Class QueueStateManager<T extends SchedulerQueue,E extends ReservationSchedulerConfiguration>
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivateQueue(String queueName) Active the queue.booleanWhether this queue can be deleted.voidinitialize(SchedulerQueueManager<T, E> newQueueManager) voidStop the queue.
-
Constructor Details
-
QueueStateManager
public QueueStateManager()
-
-
Method Details
-
initialize
-
stopQueue
Stop the queue.- Parameters:
queueName- the queue name- Throws:
org.apache.hadoop.yarn.exceptions.YarnException- if the queue does not exist
-
activateQueue
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
Whether this queue can be deleted.- Parameters:
queueName- the queue name- Returns:
- true if the queue can be deleted
-