public class CSMaxRunningAppsEnforcer extends Object
| Constructor and Description | 
|---|
| CSMaxRunningAppsEnforcer(CapacityScheduler scheduler) | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | checkRunnabilityWithUpdate(FiCaSchedulerApp attempt)Checks whether making the application runnable would exceed any
 maxRunningApps limits. | 
| void | trackApp(FiCaSchedulerApp app) | 
| void | untrackApp(FiCaSchedulerApp app) | 
| void | updateRunnabilityOnAppRemoval(FiCaSchedulerApp app)Checks to see whether any other applications runnable now that the given
 application has been removed from the given queue. | 
| void | updateRunnabilityOnReload()This is called after reloading the allocation configuration when the
 scheduler is reinitialized
 Checks to see whether any non-runnable applications become runnable
 now that the max running apps of given queue has been changed
 Runs in O(n) where n is the number of apps that are non-runnable and in
 the queues that went from having no slack to having slack. | 
public CSMaxRunningAppsEnforcer(CapacityScheduler scheduler)
public boolean checkRunnabilityWithUpdate(FiCaSchedulerApp attempt)
attempt - the app attempt being checkedpublic void trackApp(FiCaSchedulerApp app)
public void updateRunnabilityOnReload()
public void updateRunnabilityOnAppRemoval(FiCaSchedulerApp app)
public void untrackApp(FiCaSchedulerApp app)
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.