Package org.apache.hadoop.yarn.server.resourcemanager.placement.csmappingrule
package org.apache.hadoop.yarn.server.resourcemanager.placement.csmappingrule
-
ClassDescriptionMapping rule represents a single mapping setting defined by the user.This interface represents the action part of a MappingRule, action are responsible to decide what should happen with the actual application submission.This class implements the fallback logic for MappingRuleActions, this can be extended to implement the actual logic of the actions, this should be a base class for most actions.This class contains all the actions and some helper methods to generate them.PlaceToQueueAction represents a placement action, contains the pattern of the queue name or path in which the path variables will be substituted with the variable context's respective values.RejectAction represents the action when the application is rejected, this simply will throw an error on the user's side letting it know the submission was rejected.VariableUpdateAction represents the action which alters one of the mutable variables in the variable context, but doesn't do anything with the application.SecondaryGroupVariable represents a conditional variable which is supposed to evaluate path parts with "%secondary_group".This class contains all the matcher and some helper methods to generate them.AndMatcher is a basic boolean matcher which takes multiple other matcher as it's arguments, and on match it checks if all of them are true.MatchAllMatcher is a matcher which matches everything.OrMatcher is a basic boolean matcher which takes multiple other matcher as its arguments, and on match it checks if any of them are true.The GroupMatcher will check if any of the user's groups match the provided group name.VariableMatcher will check if a provided variable's value matches the provided value.This class represents the outcome of an action.This interface represents a context which contains all methods and data required by the mapping rules to validate the initial configuration.This class' functionality needs to be merged into CapacityScheduler or CapacitySchedulerQueueManager, but that will include a lot of testcase changes, so temporarily the logic is extracted to this class.