Queue.QueueLabelPolicylabel, labelPolicy, parent, policy, recordFactory, schedulerLABEL_NONE| Constructor and Description |
|---|
FSParentQueue(String name,
FairScheduler scheduler,
FSParentQueue parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChildQueue(FSQueue child) |
org.apache.hadoop.yarn.api.records.Resource |
assignContainer(FSSchedulerNode node)
Assign a container on this node if possible, and return the amount of
resources assigned.
|
void |
collectSchedulerApplications(Collection<org.apache.hadoop.yarn.api.records.ApplicationAttemptId> apps)
Adds all applications in the queue and its subqueues to the given collection.
|
void |
decrementRunnableApps() |
ActiveUsersManager |
getActiveUsersManager() |
List<FSQueue> |
getChildQueues()
Gets the children of this queue, if any.
|
org.apache.hadoop.yarn.api.records.Resource |
getDemand()
Maximum number of resources required by this Schedulable.
|
int |
getNumRunnableApps()
Return the number of apps for which containers can be allocated.
|
List<org.apache.hadoop.yarn.api.records.QueueUserACLInfo> |
getQueueUserAclInfo(org.apache.hadoop.security.UserGroupInformation user)
Get queue ACLs for given
user. |
org.apache.hadoop.yarn.api.records.Resource |
getResourceUsage()
Get the aggregate amount of resources consumed by the schedulable.
|
void |
incrementRunnableApps() |
void |
recomputeShares()
Recomputes the shares for all child queues and applications based on this
queue's current share
|
void |
setPolicy(SchedulingPolicy policy) |
void |
updateDemand()
Refresh the Schedulable's demand and those of its children if any.
|
assignContainerPreCheck, getLabel, getLabelPolicy, getMaxShare, getMetrics, getMinShare, getName, getParent, getPolicy, getPriority, getQueueInfo, getQueueName, getStartTime, getWeights, hasAccess, refreshLabel, refreshLabelPolicy, setFairShare, setLabel, setLabelPolicy, throwPolicyDoesnotApplyExceptiongetFairShare, toStringpublic FSParentQueue(String name, FairScheduler scheduler, FSParentQueue parent)
public void addChildQueue(FSQueue child)
public void recomputeShares()
FSQueuerecomputeShares in class FSQueuepublic org.apache.hadoop.yarn.api.records.Resource getDemand()
SchedulablegetDemand in class Schedulablepublic org.apache.hadoop.yarn.api.records.Resource getResourceUsage()
SchedulablegetResourceUsage in class Schedulablepublic void updateDemand()
SchedulableupdateDemand in class Schedulablepublic List<org.apache.hadoop.yarn.api.records.QueueUserACLInfo> getQueueUserAclInfo(org.apache.hadoop.security.UserGroupInformation user)
Queueuser.user - usernamepublic org.apache.hadoop.yarn.api.records.Resource assignContainer(FSSchedulerNode node)
SchedulableassignContainer in class Schedulablepublic List<FSQueue> getChildQueues()
FSQueuegetChildQueues in class FSQueuepublic void setPolicy(SchedulingPolicy policy) throws AllocationConfigurationException
setPolicy in class FSQueueAllocationConfigurationExceptionpublic void incrementRunnableApps()
public void decrementRunnableApps()
public int getNumRunnableApps()
FSQueuegetNumRunnableApps in class FSQueuepublic void collectSchedulerApplications(Collection<org.apache.hadoop.yarn.api.records.ApplicationAttemptId> apps)
FSQueuecollectSchedulerApplications in class FSQueueapps - the collection to add the applications topublic ActiveUsersManager getActiveUsersManager()
Copyright © 2014 Apache Software Foundation. All Rights Reserved.