Class HomePolicyManager
java.lang.Object
org.apache.hadoop.yarn.server.federation.policies.manager.AbstractPolicyManager
org.apache.hadoop.yarn.server.federation.policies.manager.HomePolicyManager
- All Implemented Interfaces:
FederationPolicyManager
Policy manager which uses the
UniformRandomRouterPolicy for the
Router and HomeAMRMProxyPolicy as the AMRMProxy policy to find the
RM.-
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
-
HomePolicyManager
public HomePolicyManager()
-
-
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
-