public abstract class AbstractAMRMProxyPolicy extends AbstractConfigurableFederationPolicy implements FederationAMRMProxyPolicy
FederationAMRMProxyPolicy implementations,
 that provides common validation for reinitialization.| Constructor and Description | 
|---|
| AbstractAMRMProxyPolicy() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | notifyOfResponse(SubClusterId subClusterId,
                org.apache.hadoop.yarn.api.protocolrecords.AllocateResponse response)This method should be invoked to notify the policy about responses being
 received. | 
| void | validate(WeightedPolicyInfo newPolicyInfo)Overridable validation step for the policy configuration. | 
getActiveSubclusters, getIsDirty, getPolicyContext, getPolicyInfo, reinitialize, setPolicyContext, setPolicyInfoclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsplitResourceRequestsreinitializepublic void validate(WeightedPolicyInfo newPolicyInfo) throws FederationPolicyInitializationException
AbstractConfigurableFederationPolicyvalidate in class AbstractConfigurableFederationPolicynewPolicyInfo - the configuration to test.FederationPolicyInitializationException - if the configuration is not
           valid.public void notifyOfResponse(SubClusterId subClusterId, org.apache.hadoop.yarn.api.protocolrecords.AllocateResponse response) throws org.apache.hadoop.yarn.exceptions.YarnException
FederationAMRMProxyPolicynotifyOfResponse in interface FederationAMRMProxyPolicysubClusterId - the id of the subcluster sending the notificationresponse - the response received from one of the RMsorg.apache.hadoop.yarn.exceptions.YarnException - in case the response is not validCopyright © 2008–2023 Apache Software Foundation. All rights reserved.