Uses of Class
org.apache.hadoop.yarn.server.resourcemanager.placement.csmappingrule.MappingRuleResult
Packages that use MappingRuleResult
-
Uses of MappingRuleResult in org.apache.hadoop.yarn.server.resourcemanager.placement.csmappingrule
Methods in org.apache.hadoop.yarn.server.resourcemanager.placement.csmappingrule that return MappingRuleResultModifier and TypeMethodDescriptionstatic MappingRuleResultMappingRuleResult.createDefaultPlacementResult()Generator method for default placement results.static MappingRuleResultMappingRuleResult.createPlacementResult(String queue, boolean allowCreate) Generator method for place results.static MappingRuleResultMappingRuleResult.createRejectResult()Generator method for reject results.static MappingRuleResultMappingRuleResult.createSkipResult()Generator method for skip results.MappingRule.evaluate(VariableContext variables) This method evaluates the rule, and returns the MappingRuleResult, if the rule matches, skip action otherwise.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 MappingRuleResultMappingRuleActionBase.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.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.MappingRuleActions.RejectAction.execute(VariableContext variables) Reject action will unconditionally return a reject result.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.MappingRule.getFallback()Returns the associated action's fallback.MappingRuleAction.getFallback()Returns the fallback action to be taken if the main action (result returned by the execute method) fails.MappingRuleActionBase.getFallback()Returns the fallback action to be taken if the main action (result returned by the execute method) fails.