@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
public void setParentRule(PlacementRule parent)
parent
- A PlacementRulepublic PlacementRule getParentRule()
null
if not set.public void setConfig(Object initArg)
setConfig
in class PlacementRule
initArg
- the config to be setprotected void setConfig(Element conf)
conf
- An xml element from the FairScheduler.conf
protected 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 PlacementRule
scheduler
- the scheduler using the ruletrue
in all casesIOException
- for any errorspublic boolean getCreateFlag()
createQueue
flagCopyright © 2008–2021 Apache Software Foundation. All rights reserved.