FederationPolicyManagerpublic class WeightedHomePolicyManager extends AbstractPolicyManager
WeightedRandomRouterPolicy for the router and a HomeAMRMProxyPolicy for the amrmproxy as they are designed to
work together.amrmProxyFederationPolicy, LOG, routerFederationPolicy| Constructor | Description |
|---|---|
WeightedHomePolicyManager() |
| Modifier and Type | Method | Description |
|---|---|---|
WeightedPolicyInfo |
getWeightedPolicyInfo() |
We get the WeightedPolicyInfo of the subCluster.
|
boolean |
isSupportWeightedPolicyInfo() |
PolicyManager Whether to support WeightedPolicyInfo.
|
SubClusterPolicyConfiguration |
serializeConf() |
This method is invoked to derive a
SubClusterPolicyConfiguration. |
void |
setWeightedPolicyInfo(WeightedPolicyInfo weightedPolicyInfo) |
We set the WeightedPolicyInfo of the subCluster.
|
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 properly@VisibleForTesting public WeightedPolicyInfo getWeightedPolicyInfo()
AbstractPolicyManagergetWeightedPolicyInfo in interface FederationPolicyManagergetWeightedPolicyInfo in class AbstractPolicyManager@VisibleForTesting public void setWeightedPolicyInfo(WeightedPolicyInfo weightedPolicyInfo)
AbstractPolicyManagersetWeightedPolicyInfo in interface FederationPolicyManagersetWeightedPolicyInfo in class AbstractPolicyManagerweightedPolicyInfo - weightedPolicyInfo of the subCluster.public boolean isSupportWeightedPolicyInfo()
FederationPolicyManagerCopyright © 2008–2025 Apache Software Foundation. All rights reserved.