|
||||||||||
| 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.MaxRunningAppsEnforcer
public class MaxRunningAppsEnforcer
Handles tracking and enforcement for user and queue maxRunningApps constraints
| Constructor Summary | |
|---|---|
MaxRunningAppsEnforcer(FairScheduler scheduler)
|
|
| Method Summary | |
|---|---|
boolean |
canAppBeRunnable(FSQueue queue,
String user)
Checks whether making the application runnable would exceed any maxRunningApps limits. |
void |
trackNonRunnableApp(FSAppAttempt app)
Tracks the given new non runnable app so that it can be made runnable when it would not violate max running app limits. |
void |
trackRunnableApp(FSAppAttempt app)
Tracks the given new runnable app for purposes of maintaining max running app limits. |
void |
untrackNonRunnableApp(FSAppAttempt app)
Stops tracking the given non-runnable app |
void |
untrackRunnableApp(FSAppAttempt app)
Updates the relevant tracking variables after a runnable app with the given queue and user has been removed. |
void |
updateRunnabilityOnAppRemoval(FSAppAttempt app,
FSLeafQueue queue)
Checks to see whether any other applications runnable now that the given application has been removed from the given queue. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MaxRunningAppsEnforcer(FairScheduler scheduler)
| Method Detail |
|---|
public boolean canAppBeRunnable(FSQueue queue,
String user)
public void trackRunnableApp(FSAppAttempt app)
public void trackNonRunnableApp(FSAppAttempt app)
public void updateRunnabilityOnAppRemoval(FSAppAttempt app,
FSLeafQueue queue)
public void untrackRunnableApp(FSAppAttempt app)
public void untrackNonRunnableApp(FSAppAttempt app)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||