public static class MappingRuleActions.VariableUpdateAction extends MappingRuleActionBase
| Modifier and Type | Method and Description |
|---|---|
MappingRuleResult |
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.
|
String |
toString() |
void |
validate(MappingRuleValidationContext ctx)
During the validation process we add the variable set by this action
to the known variables, to make sure the context is aware that we might
introduce a new custom variable.
|
getFallback, setFallbackDefaultPlacement, setFallbackReject, setFallbackSkippublic MappingRuleResult execute(VariableContext variables)
execute in interface MappingRuleActionexecute in class MappingRuleActionBasevariables - The variable context, which contains all the variablespublic void validate(MappingRuleValidationContext ctx) throws org.apache.hadoop.yarn.exceptions.YarnException
ctx - Validation context with all the necessary objects and helper
methods required during validationorg.apache.hadoop.yarn.exceptions.YarnException - If the variable cannot be added to the contextCopyright © 2008–2024 Apache Software Foundation. All rights reserved.