public static class MappingRuleActions.PlaceToQueueAction extends MappingRuleActionBase
| Modifier and Type | Method and 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.
|
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 errorCopyright © 2008–2024 Apache Software Foundation. All rights reserved.