Uses of Class
org.apache.hadoop.yarn.server.resourcemanager.placement.VariableContext
Packages that use VariableContext
Package
Description
-
Uses of VariableContext in org.apache.hadoop.yarn.server.resourcemanager.placement
Methods in org.apache.hadoop.yarn.server.resourcemanager.placement that return VariableContextModifier and TypeMethodDescriptionAdds a variable with value to the context or overrides an already existing one.VariableContext.putConditional(String name, MappingRuleConditionalVariable variable) This method is used to add a conditional variable to the variable context.VariableContext.setImmutables(String... variableNames) Can be used to provide an array of strings which contains the names of the variables which should be immutable.VariableContext.setImmutables(Set<String> variableNames) Can be used to provide a set which contains the name of the variables which should be immutable. -
Uses of VariableContext in org.apache.hadoop.yarn.server.resourcemanager.placement.csmappingrule
Methods in org.apache.hadoop.yarn.server.resourcemanager.placement.csmappingrule with parameters of type VariableContextModifier and TypeMethodDescriptionMappingRule.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.booleanMappingRuleMatcher.match(VariableContext variables) Returns true if the matcher matches the current context.booleanMappingRuleMatchers.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.booleanMappingRuleMatchers.MatchAllMatcher.match(VariableContext variables) The match will return true in all cases, to match all submissions.booleanMappingRuleMatchers.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.booleanMappingRuleMatchers.UserGroupMatcher.match(VariableContext variables) The method will match (return true) if the user is in the provided group.booleanMappingRuleMatchers.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.