Class HashBroadcastPolicyManager
java.lang.Object
org.apache.hadoop.yarn.server.federation.policies.manager.AbstractPolicyManager
org.apache.hadoop.yarn.server.federation.policies.manager.HashBroadcastPolicyManager
- All Implemented Interfaces:
FederationPolicyManager
Policy that routes applications via hashing of their queuename, and broadcast
resource requests. This picks a
HashBasedRouterPolicy 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.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, serializeConf, setQueue
-
Constructor Details
-
HashBroadcastPolicyManager
public HashBroadcastPolicyManager()
-
-
Method Details
-
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
-