Class MappingRuleActions.RejectAction

java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.placement.csmappingrule.MappingRuleActionBase
org.apache.hadoop.yarn.server.resourcemanager.placement.csmappingrule.MappingRuleActions.RejectAction
All Implemented Interfaces:
MappingRuleAction
Enclosing class:
MappingRuleActions

public static class MappingRuleActions.RejectAction extends MappingRuleActionBase
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.
  • Constructor Details

    • RejectAction

      public RejectAction()
  • Method Details

    • execute

      public MappingRuleResult execute(VariableContext variables)
      Reject action will unconditionally return a reject result.
      Specified by:
      execute in interface MappingRuleAction
      Specified by:
      execute in class MappingRuleActionBase
      Parameters:
      variables - The variable context, which contains all the variables
      Returns:
      Always a REJECT MappingRuleResut
    • validate

      public void validate(MappingRuleValidationContext ctx) throws org.apache.hadoop.yarn.exceptions.YarnException
      Reject action is always valid, so it is just an empty implementation of the defined interface method.
      Parameters:
      ctx - Validation context with all the necessary objects and helper methods required during validation
      Throws:
      org.apache.hadoop.yarn.exceptions.YarnException - is thrown on validation error
    • toString

      public String toString()
      Overrides:
      toString in class Object