Queue.QueueLabelPolicylabel, labelPolicy, parent, policy, recordFactory, schedulerLABEL_NONE| Constructor and Description |
|---|
FSLeafQueue(String name,
FairScheduler scheduler,
FSParentQueue parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
addApp(FSSchedulerApp app,
boolean runnable) |
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.
|
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.
|
long |
getLastTimeAtHalfFairShare() |
long |
getLastTimeAtMinShare() |
List<AppSchedulable> |
getNonRunnableAppSchedulables() |
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.
|
Collection<AppSchedulable> |
getRunnableAppSchedulables() |
void |
recomputeShares()
Recomputes the shares for all child queues and applications based on this
queue's current share
|
boolean |
removeApp(FSSchedulerApp app)
Removes the given app from this queue.
|
void |
setLastTimeAtHalfFairShare(long lastTimeAtHalfFairShare) |
void |
setLastTimeAtMinShare(long lastTimeAtMinShare) |
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 FSLeafQueue(String name, FairScheduler scheduler, FSParentQueue parent)
public void addApp(FSSchedulerApp app, boolean runnable)
public boolean removeApp(FSSchedulerApp app)
public Collection<AppSchedulable> getRunnableAppSchedulables()
public List<AppSchedulable> getNonRunnableAppSchedulables()
public void collectSchedulerApplications(Collection<org.apache.hadoop.yarn.api.records.ApplicationAttemptId> apps)
FSQueuecollectSchedulerApplications in class FSQueueapps - the collection to add the applications topublic void setPolicy(SchedulingPolicy policy) throws AllocationConfigurationException
setPolicy in class FSQueueAllocationConfigurationExceptionpublic 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 org.apache.hadoop.yarn.api.records.Resource assignContainer(FSSchedulerNode node)
SchedulableassignContainer in class Schedulablepublic List<FSQueue> getChildQueues()
FSQueuegetChildQueues in class FSQueuepublic List<org.apache.hadoop.yarn.api.records.QueueUserACLInfo> getQueueUserAclInfo(org.apache.hadoop.security.UserGroupInformation user)
Queueuser.user - usernamepublic long getLastTimeAtMinShare()
public void setLastTimeAtMinShare(long lastTimeAtMinShare)
public long getLastTimeAtHalfFairShare()
public void setLastTimeAtHalfFairShare(long lastTimeAtHalfFairShare)
public int getNumRunnableApps()
FSQueuegetNumRunnableApps in class FSQueuepublic ActiveUsersManager getActiveUsersManager()
Copyright © 2014 Apache Software Foundation. All Rights Reserved.