| Package | Description |
|---|---|
| org.apache.hadoop.yarn.server.resourcemanager.placement | |
| org.apache.hadoop.yarn.server.resourcemanager.placement.csmappingrule |
| Modifier and Type | Method | Description |
|---|---|---|
VariableContext |
VariableContext.put(java.lang.String name,
java.lang.String value) |
Adds a variable with value to the context or overrides an already existing
one.
|
VariableContext |
VariableContext.putConditional(java.lang.String name,
MappingRuleConditionalVariable variable) |
This method is used to add a conditional variable to the variable context.
|
VariableContext |
VariableContext.setImmutables(java.lang.String... variableNames) |
Can be used to provide an array of strings which contains the names of the
variables which should be immutable.
|
VariableContext |
VariableContext.setImmutables(java.util.Set<java.lang.String> variableNames) |
Can be used to provide a set which contains the name of the variables which
should be immutable.
|
| Modifier and Type | Method | Description |
|---|---|---|
MappingRuleResult |
MappingRule.evaluate(VariableContext variables) |
This method evaluates the rule, and returns the MappingRuleResult, if
the rule matches, skip action otherwise.
|
MappingRuleResult |
MappingRuleAction.execute(VariableContext variables) |
This method is the main logic of the action, it shall determine based on
the mapping context, what should be the action's result.
|
abstract MappingRuleResult |
MappingRuleActionBase.execute(VariableContext variables) |
This method is the main logic of the action, it shall determine based on
the mapping context, what should be the action's result.
|
MappingRuleResult |
MappingRuleActions.PlaceToQueueAction.execute(VariableContext variables) |
This method is the main logic of the action, it will replace all the
variables in the queuePattern with their respective values, then returns
a placementResult with the final queue name.
|
MappingRuleResult |
MappingRuleActions.RejectAction.execute(VariableContext variables) |
Reject action will unconditionally return a reject result.
|
MappingRuleResult |
MappingRuleActions.VariableUpdateAction.execute(VariableContext variables) |
This execute is a bit special, compared to other actions, since it does
not affect the placement of the application, but changes the variable
context.
|
boolean |
MappingRuleMatcher.match(VariableContext variables) |
Returns true if the matcher matches the current context.
|
boolean |
MappingRuleMatchers.AndMatcher.match(VariableContext variables) |
This match method will go through all the provided matchers and call
their match method, if all match we return true.
|
boolean |
MappingRuleMatchers.MatchAllMatcher.match(VariableContext variables) |
The match will return true in all cases, to match all submissions.
|
boolean |
MappingRuleMatchers.OrMatcher.match(VariableContext variables) |
This match method will go through all the provided matchers and call
their match method, if any of them match we return true.
|
boolean |
MappingRuleMatchers.UserGroupMatcher.match(VariableContext variables) |
The method will match (return true) if the user is in the provided group.
|
boolean |
MappingRuleMatchers.VariableMatcher.match(VariableContext variables) |
The method will replace all variables in the value, then compares this
substituted value against the variable's value, if they match we return
true.
|
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.