|
||||||||||
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.Schedulable
org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSQueue
org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSLeafQueue
@InterfaceAudience.Private @InterfaceStability.Unstable public class FSLeafQueue
Field Summary |
---|
Fields inherited from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSQueue |
---|
parent, policy, recordFactory |
Constructor Summary | |
---|---|
FSLeafQueue(String name,
QueueManager queueMgr,
FairScheduler scheduler,
FSParentQueue parent)
|
Method Summary | |
---|---|
void |
addApp(FSSchedulerApp app)
|
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. |
Collection<AppSchedulable> |
getAppSchedulables()
|
Collection<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<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 |
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. |
Methods inherited from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSQueue |
---|
assignContainerPreCheck, getMaxShare, getMetrics, getMinShare, getName, getPolicy, getPriority, getQueueInfo, getQueueName, getStartTime, getWeights, hasAccess, setFairShare, throwPolicyDoesnotApplyException |
Methods inherited from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.Schedulable |
---|
getFairShare, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FSLeafQueue(String name, QueueManager queueMgr, FairScheduler scheduler, FSParentQueue parent)
Method Detail |
---|
public void addApp(FSSchedulerApp app)
public void removeApp(FSSchedulerApp app)
public Collection<AppSchedulable> getAppSchedulables()
public void setPolicy(SchedulingPolicy policy) throws AllocationConfigurationException
setPolicy
in class FSQueue
AllocationConfigurationException
public void recomputeShares()
FSQueue
recomputeShares
in class FSQueue
public org.apache.hadoop.yarn.api.records.Resource getDemand()
Schedulable
getDemand
in class Schedulable
public org.apache.hadoop.yarn.api.records.Resource getResourceUsage()
Schedulable
getResourceUsage
in class Schedulable
public void updateDemand()
Schedulable
updateDemand
in class Schedulable
public org.apache.hadoop.yarn.api.records.Resource assignContainer(FSSchedulerNode node)
Schedulable
assignContainer
in class Schedulable
public Collection<FSQueue> getChildQueues()
FSQueue
getChildQueues
in class FSQueue
public List<org.apache.hadoop.yarn.api.records.QueueUserACLInfo> getQueueUserAclInfo(org.apache.hadoop.security.UserGroupInformation user)
Queue
user
.
user
- username
public long getLastTimeAtMinShare()
public void setLastTimeAtMinShare(long lastTimeAtMinShare)
public long getLastTimeAtHalfFairShare()
public void setLastTimeAtHalfFairShare(long lastTimeAtHalfFairShare)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |