@InterfaceAudience.Private @InterfaceStability.Unstable public abstract class FSPlacementRule extends PlacementRule
FairScheduler Placement Rules.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
createQueue |
| Constructor and Description |
|---|
FSPlacementRule() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getCreateFlag()
Get the create flag as set during the config setup.
|
PlacementRule |
getParentRule()
Get the rule that is set to generate the parent queue dynamically.
|
boolean |
initialize(ResourceScheduler scheduler)
Standard initialisation for
FairScheduler rules, shared by all
rules. |
protected void |
setConfig(Boolean create)
Set the rule config just setting the create flag.
|
protected void |
setConfig(Element conf)
Set the rule config from the xml config.
|
void |
setConfig(Object initArg)
Set the config based on the type of object passed in.
|
void |
setParentRule(PlacementRule parent)
Set a rule to generate the parent queue dynamically.
|
getName, getPlacementForApp, getPlacementForApppublic void setParentRule(PlacementRule parent)
parent - A PlacementRule@VisibleForTesting public PlacementRule getParentRule()
null if not set.public void setConfig(Object initArg)
setConfig in class PlacementRuleinitArg - the config to be setprotected void setConfig(Element conf)
conf - An xml element from the FairScheduler.confprotected void setConfig(Boolean create)
create - flag to allow queue creation for this rulepublic boolean initialize(ResourceScheduler scheduler) throws IOException
FairScheduler rules, shared by all
rules. Each rule that extends this abstract and overrides this method must
call super.initialize() to run this basic initialisation.initialize in class PlacementRulescheduler - the scheduler using the ruletrue in all casesIOException - for any errorspublic boolean getCreateFlag()
createQueue flagCopyright © 2008–2024 Apache Software Foundation. All rights reserved.