public class PriorityBroadcastPolicyManager extends AbstractPolicyManager
PriorityRouterPolicy
for the router and a
BroadcastAMRMProxyPolicy
for the amrmproxy as they are designed to
work together.amrmProxyFederationPolicy, LOG, routerFederationPolicy
Constructor and Description |
---|
PriorityBroadcastPolicyManager() |
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 properly@VisibleForTesting public WeightedPolicyInfo getWeightedPolicyInfo()
AbstractPolicyManager
getWeightedPolicyInfo
in interface FederationPolicyManager
getWeightedPolicyInfo
in class AbstractPolicyManager
@VisibleForTesting 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.