public class CSMaxRunningAppsEnforcer
extends java.lang.Object
| Constructor | Description |
|---|---|
CSMaxRunningAppsEnforcer(CapacityScheduler scheduler) |
| Modifier and Type | Method | 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)
app - FiCaSchedulerApp.public void untrackApp(FiCaSchedulerApp app)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.