public class WeightedLocalityPolicyManager extends AbstractPolicyManager
WeightedRandomRouterPolicy for the router and a LocalityMulticastAMRMProxyPolicy for the amrmproxy as they are designed to
work together.amrmProxyFederationPolicy, LOG, routerFederationPolicy| Constructor and Description |
|---|
WeightedLocalityPolicyManager() |
| Modifier and Type | Method and Description |
|---|---|
WeightedPolicyInfo |
getWeightedPolicyInfo() |
SubClusterPolicyConfiguration |
serializeConf()
This method is invoked to derive a
SubClusterPolicyConfiguration. |
void |
setWeightedPolicyInfo(WeightedPolicyInfo weightedPolicyInfo) |
getAMRMPolicy, getQueue, getRouterPolicy, setQueuepublic SubClusterPolicyConfiguration serializeConf() throws FederationPolicyInitializationException
FederationPolicyManagerSubClusterPolicyConfiguration.
This is to be used when writing a policy object in the federation policy
store.serializeConf in interface FederationPolicyManagerserializeConf in class AbstractPolicyManagerFederationPolicyInitializationException - if the current state cannot
be serialized properlypublic WeightedPolicyInfo getWeightedPolicyInfo()
public void setWeightedPolicyInfo(WeightedPolicyInfo weightedPolicyInfo)
Copyright © 2022 Apache Software Foundation. All rights reserved.