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
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(VariableContext variables) Reject action will unconditionally return a reject result.toString()voidReject action is always valid, so it is just an empty implementation of the defined interface method.Methods inherited from class org.apache.hadoop.yarn.server.resourcemanager.placement.csmappingrule.MappingRuleActionBase
getFallback, setFallbackDefaultPlacement, setFallbackReject, setFallbackSkip
-
Constructor Details
-
RejectAction
public RejectAction()
-
-
Method Details
-
execute
Reject action will unconditionally return a reject result.- Specified by:
executein interfaceMappingRuleAction- Specified by:
executein classMappingRuleActionBase- 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
-