Class PriorityBroadcastPolicyManager
java.lang.Object
org.apache.hadoop.yarn.server.federation.policies.manager.AbstractPolicyManager
org.apache.hadoop.yarn.server.federation.policies.manager.PriorityBroadcastPolicyManager
- All Implemented Interfaces:
FederationPolicyManager
Policy that allows operator to configure "weights" for routing. This picks a
PriorityRouterPolicy for the router and a
BroadcastAMRMProxyPolicy for the amrmproxy as they are designed to
work together.-
Field Summary
Fields inherited from class org.apache.hadoop.yarn.server.federation.policies.manager.AbstractPolicyManager
amrmProxyFederationPolicy, LOG, routerFederationPolicy -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionWe get the WeightedPolicyInfo of the subCluster.booleanPolicyManager Whether to support WeightedPolicyInfo.This method is invoked to derive aSubClusterPolicyConfiguration.voidsetWeightedPolicyInfo(WeightedPolicyInfo weightedPolicyInfo) We set the WeightedPolicyInfo of the subCluster.Methods inherited from class org.apache.hadoop.yarn.server.federation.policies.manager.AbstractPolicyManager
getAMRMPolicy, getQueue, getRouterPolicy, setQueue
-
Constructor Details
-
PriorityBroadcastPolicyManager
public PriorityBroadcastPolicyManager()
-
-
Method Details
-
serializeConf
Description copied from interface:FederationPolicyManagerThis method is invoked to derive aSubClusterPolicyConfiguration. This is to be used when writing a policy object in the federation policy store.- Specified by:
serializeConfin interfaceFederationPolicyManager- Overrides:
serializeConfin classAbstractPolicyManager- Returns:
- a valid policy configuration representing this object parametrization.
- Throws:
FederationPolicyInitializationException- if the current state cannot be serialized properly
-
getWeightedPolicyInfo
Description copied from class:AbstractPolicyManagerWe get the WeightedPolicyInfo of the subCluster.- Specified by:
getWeightedPolicyInfoin interfaceFederationPolicyManager- Specified by:
getWeightedPolicyInfoin classAbstractPolicyManager- Returns:
- WeightedPolicyInfo.
-
setWeightedPolicyInfo
Description copied from class:AbstractPolicyManagerWe set the WeightedPolicyInfo of the subCluster.- Specified by:
setWeightedPolicyInfoin interfaceFederationPolicyManager- Specified by:
setWeightedPolicyInfoin classAbstractPolicyManager- Parameters:
weightedPolicyInfo- weightedPolicyInfo of the subCluster.
-
isSupportWeightedPolicyInfo
public boolean isSupportWeightedPolicyInfo()Description copied from interface:FederationPolicyManagerPolicyManager Whether to support WeightedPolicyInfo. Some of PolicyManagers do not support WeightedPolicyInfo.- Returns:
- true, supports WeightedPolicyInfo; false, WeightedPolicyInfo is not supported
-