|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.QueueManager
@InterfaceAudience.Private @InterfaceStability.Unstable public class QueueManager
Maintains a list of queues as well as scheduling parameters for each queue, such as guaranteed share allocations, from the fair scheduler config file.
| Field Summary | |
|---|---|
static org.apache.commons.logging.Log |
LOG
|
static String |
ROOT_QUEUE
|
| Constructor Summary | |
|---|---|
QueueManager(FairScheduler scheduler)
|
|
| Method Summary | |
|---|---|
boolean |
exists(String name)
Return whether a queue exists already. |
FSLeafQueue |
getLeafQueue(String name,
boolean create)
Get a leaf queue by name, creating it if the create param is true and is necessary. |
Collection<FSLeafQueue> |
getLeafQueues()
Get a collection of all leaf queues |
FSParentQueue |
getParentQueue(String name,
boolean create)
Get a parent queue by name, creating it if the create param is true and is necessary. |
FSQueue |
getQueue(String name)
Gets a queue by name. |
Collection<FSQueue> |
getQueues()
Get a collection of all queues |
FSParentQueue |
getRootQueue()
|
void |
initialize(org.apache.hadoop.conf.Configuration conf)
|
protected boolean |
isEmpty(FSQueue queue)
Returns true if there are no applications, running or not, in the given queue or any of its descendents. |
void |
updateAllocationConfiguration(AllocationConfiguration queueConf)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.commons.logging.Log LOG
public static final String ROOT_QUEUE
| Constructor Detail |
|---|
public QueueManager(FairScheduler scheduler)
| Method Detail |
|---|
public FSParentQueue getRootQueue()
public void initialize(org.apache.hadoop.conf.Configuration conf)
throws IOException,
SAXException,
AllocationConfigurationException,
ParserConfigurationException
IOException
SAXException
AllocationConfigurationException
ParserConfigurationException
public FSLeafQueue getLeafQueue(String name,
boolean create)
public FSParentQueue getParentQueue(String name,
boolean create)
protected boolean isEmpty(FSQueue queue)
public FSQueue getQueue(String name)
public boolean exists(String name)
public Collection<FSLeafQueue> getLeafQueues()
public Collection<FSQueue> getQueues()
public void updateAllocationConfiguration(AllocationConfiguration queueConf)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||