public class MaxRunningAppsEnforcer extends Object
| Constructor and Description |
|---|
MaxRunningAppsEnforcer(FairScheduler scheduler) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAppBeRunnable(FSQueue queue,
String user)
Checks whether making the application runnable would exceed any
maxRunningApps limits.
|
void |
trackNonRunnableApp(FSSchedulerApp 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(FSSchedulerApp app)
Tracks the given new runnable app for purposes of maintaining max running
app limits.
|
void |
untrackNonRunnableApp(FSSchedulerApp app)
Stops tracking the given non-runnable app
|
void |
untrackRunnableApp(FSSchedulerApp app)
Updates the relevant tracking variables after a runnable app with the given
queue and user has been removed.
|
void |
updateRunnabilityOnAppRemoval(FSSchedulerApp app,
FSLeafQueue queue)
Checks to see whether any other applications runnable now that the given
application has been removed from the given queue.
|
public MaxRunningAppsEnforcer(FairScheduler scheduler)
public boolean canAppBeRunnable(FSQueue queue, String user)
public void trackRunnableApp(FSSchedulerApp app)
public void trackNonRunnableApp(FSSchedulerApp app)
public void updateRunnabilityOnAppRemoval(FSSchedulerApp app, FSLeafQueue queue)
public void untrackRunnableApp(FSSchedulerApp app)
public void untrackNonRunnableApp(FSSchedulerApp app)
Copyright © 2014 Apache Software Foundation. All Rights Reserved.