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, setPolicyInfo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
splitResourceRequests
reinitialize
public void validate(WeightedPolicyInfo newPolicyInfo) throws FederationPolicyInitializationException
AbstractConfigurableFederationPolicy
validate
in class AbstractConfigurableFederationPolicy
newPolicyInfo
- 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
FederationAMRMProxyPolicy
notifyOfResponse
in interface FederationAMRMProxyPolicy
subClusterId
- 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–2022 Apache Software Foundation. All rights reserved.