Class MappingRuleActions
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.placement.csmappingrule.MappingRuleActions
This class contains all the actions and some helper methods to generate them.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classPlaceToQueueAction 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.static classRejectAction 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.static classVariableUpdateAction represents the action which alters one of the mutable variables in the variable context, but doesn't do anything with the application. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic MappingRuleActionConvenience method to create an action which places the application to the DEFAULT queue.static MappingRuleActioncreatePlaceToQueueAction(String queue, boolean allowCreate) Convenience method to create an action which places the application to a queue.static MappingRuleActionConvenience method to create an action rejects the application.static MappingRuleActioncreateUpdateDefaultAction(String queue) Convenience method to create an action which changes the default queue.
-
Field Details
-
DEFAULT_QUEUE_VARIABLE
- See Also:
-
-
Method Details
-
createUpdateDefaultAction
Convenience method to create an action which changes the default queue.- Parameters:
queue- The new value of the default queue- Returns:
- VariableUpdateAction which will change the default queue on execute
-
createPlaceToQueueAction
Convenience method to create an action which places the application to a queue.- Parameters:
queue- The name of the queue the application should be placed toallowCreate- Determines if the target queue should be created if it does not exist- Returns:
- PlaceToQueueAction which will place the application to the specified queue on execute
-
createPlaceToDefaultAction
Convenience method to create an action which places the application to the DEFAULT queue.- Returns:
- PlaceToQueueAction which will place the application to the DEFAULT queue on execute
-
createRejectAction
Convenience method to create an action rejects the application.- Returns:
- RejectAction which will reject the application on execute
-