java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.placement.csmappingrule.MappingRuleActions

public final class MappingRuleActions extends Object
This class contains all the actions and some helper methods to generate them.
  • Field Details

  • Method Details

    • createUpdateDefaultAction

      public static MappingRuleAction createUpdateDefaultAction(String queue)
      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

      public static MappingRuleAction createPlaceToQueueAction(String queue, boolean allowCreate)
      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 to
      allowCreate - 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

      public static MappingRuleAction 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

      public static MappingRuleAction createRejectAction()
      Convenience method to create an action rejects the application.
      Returns:
      RejectAction which will reject the application on execute