|
||||||||||
| 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, scheduler |
| Constructor Summary | |
|---|---|
FSLeafQueue(String name,
FairScheduler scheduler,
FSParentQueue parent)
|
|
| Method Summary | |
|---|---|
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. |
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. |
| Methods inherited from class org.apache.hadoop.yarn.server.resourcemanager.scheduler.fair.FSQueue |
|---|
assignContainerPreCheck, getMaxShare, getMetrics, getMinShare, getName, getParent, 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,
FairScheduler scheduler,
FSParentQueue parent)
| Method Detail |
|---|
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)
FSQueue
collectSchedulerApplications in class FSQueueapps - the collection to add the applications to
public void setPolicy(SchedulingPolicy policy)
throws AllocationConfigurationException
setPolicy in class FSQueueAllocationConfigurationExceptionpublic void recomputeShares()
FSQueue
recomputeShares in class FSQueuepublic org.apache.hadoop.yarn.api.records.Resource getDemand()
Schedulable
getDemand in class Schedulablepublic org.apache.hadoop.yarn.api.records.Resource getResourceUsage()
Schedulable
getResourceUsage in class Schedulablepublic void updateDemand()
Schedulable
updateDemand in class Schedulablepublic org.apache.hadoop.yarn.api.records.Resource assignContainer(FSSchedulerNode node)
Schedulable
assignContainer in class Schedulablepublic List<FSQueue> getChildQueues()
FSQueue
getChildQueues in class FSQueuepublic List<org.apache.hadoop.yarn.api.records.QueueUserACLInfo> getQueueUserAclInfo(org.apache.hadoop.security.UserGroupInformation user)
Queueuser.
user - username
public long getLastTimeAtMinShare()
public void setLastTimeAtMinShare(long lastTimeAtMinShare)
public long getLastTimeAtHalfFairShare()
public void setLastTimeAtHalfFairShare(long lastTimeAtHalfFairShare)
public int getNumRunnableApps()
FSQueue
getNumRunnableApps in class FSQueue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||