@InterfaceAudience.Private @InterfaceStability.Unstable public class FSLeafQueue extends FSQueue
parent, policy, recordFactory| Constructor and Description |
|---|
FSLeafQueue(String name,
QueueManager queueMgr,
FairScheduler scheduler,
FSParentQueue parent) |
| Modifier and Type | Method and Description |
|---|---|
void |
addApp(FSSchedulerApp app) |
Resource |
assignContainer(FSSchedulerNode node)
Assign a container on this node if possible, and return the amount of
resources assigned.
|
Collection<AppSchedulable> |
getAppSchedulables() |
Collection<FSQueue> |
getChildQueues()
Gets the children of this queue, if any.
|
Resource |
getDemand()
Maximum number of resources required by this Schedulable.
|
long |
getLastTimeAtHalfFairShare() |
long |
getLastTimeAtMinShare() |
List<QueueUserACLInfo> |
getQueueUserAclInfo(UserGroupInformation user)
Get queue ACLs for given
user. |
Resource |
getResourceUsage()
Get the aggregate amount of resources consumed by the schedulable.
|
void |
recomputeShares()
Recomputes the shares for all child queues and applications based on this
queue's current share
|
void |
removeApp(FSSchedulerApp app) |
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, getMaxShare, getMetrics, getMinShare, getName, getPolicy, getPriority, getQueueAcls, getQueueInfo, getQueueName, getStartTime, getWeights, hasAccess, setFairShare, throwPolicyDoesnotApplyExceptiongetFairShare, toStringpublic FSLeafQueue(String name, QueueManager queueMgr, FairScheduler scheduler, FSParentQueue parent)
public void addApp(FSSchedulerApp app)
public void removeApp(FSSchedulerApp app)
public Collection<AppSchedulable> getAppSchedulables()
public void setPolicy(SchedulingPolicy policy) throws AllocationConfigurationException
setPolicy in class FSQueueAllocationConfigurationExceptionpublic void recomputeShares()
FSQueuerecomputeShares in class FSQueuepublic Resource getDemand()
SchedulablegetDemand in class Schedulablepublic Resource getResourceUsage()
SchedulablegetResourceUsage in class Schedulablepublic void updateDemand()
SchedulableupdateDemand in class Schedulablepublic Resource assignContainer(FSSchedulerNode node)
SchedulableassignContainer in class Schedulablepublic Collection<FSQueue> getChildQueues()
FSQueuegetChildQueues in class FSQueuepublic List<QueueUserACLInfo> getQueueUserAclInfo(UserGroupInformation user)
Queueuser.user - usernamepublic long getLastTimeAtMinShare()
public void setLastTimeAtMinShare(long lastTimeAtMinShare)
public long getLastTimeAtHalfFairShare()
public void setLastTimeAtHalfFairShare(long lastTimeAtHalfFairShare)
Copyright © 2013 Apache Software Foundation. All rights reserved.