MappingRuleActionpublic static class MappingRuleActions.PlaceToQueueAction extends MappingRuleActionBase
| Modifier and Type | Method | Description |
|---|---|---|
MappingRuleResult |
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.
|
java.lang.String |
toString() |
|
void |
validate(MappingRuleValidationContext ctx) |
This method is responsible for config validation, we use the validation
context's helper method to validate if our path is valid.
|
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 - is thrown on validation errorpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2008–2025 Apache Software Foundation. All rights reserved.