public class HomePolicyManager extends AbstractPolicyManager
UniformRandomRouterPolicy
for the
Router and HomeAMRMProxyPolicy
as the AMRMProxy policy to find the
RM.amrmProxyFederationPolicy, LOG, routerFederationPolicy
Constructor and Description |
---|
HomePolicyManager() |
Modifier and Type | Method and 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, setQueue
public SubClusterPolicyConfiguration serializeConf() throws FederationPolicyInitializationException
FederationPolicyManager
SubClusterPolicyConfiguration
.
This is to be used when writing a policy object in the federation policy
store.serializeConf
in interface FederationPolicyManager
serializeConf
in class AbstractPolicyManager
FederationPolicyInitializationException
- if the current state cannot
be serialized properlypublic WeightedPolicyInfo getWeightedPolicyInfo()
AbstractPolicyManager
getWeightedPolicyInfo
in interface FederationPolicyManager
getWeightedPolicyInfo
in class AbstractPolicyManager
public void setWeightedPolicyInfo(WeightedPolicyInfo weightedPolicyInfo)
AbstractPolicyManager
setWeightedPolicyInfo
in interface FederationPolicyManager
setWeightedPolicyInfo
in class AbstractPolicyManager
weightedPolicyInfo
- weightedPolicyInfo of the subCluster.public boolean isSupportWeightedPolicyInfo()
FederationPolicyManager
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.