Class RejectAllPolicyManager
java.lang.Object
org.apache.hadoop.yarn.server.federation.policies.manager.AbstractPolicyManager
org.apache.hadoop.yarn.server.federation.policies.manager.RejectAllPolicyManager
- All Implemented Interfaces:
FederationPolicyManager
This class represents a simple implementation of a
FederationPolicyManager.
This policy rejects all requests for both router and amrmproxy routing. This
is to be used to prevent applications in a specific queue (or if used as
default for non-configured queues) from accessing cluster resources.-
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
-
RejectAllPolicyManager
public RejectAllPolicyManager()
-
-
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
-