Class NoOpGlobalPolicy
java.lang.Object
org.apache.hadoop.yarn.server.globalpolicygenerator.policygenerator.GlobalPolicy
org.apache.hadoop.yarn.server.globalpolicygenerator.policygenerator.NoOpGlobalPolicy
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable
Default policy that does not update any policy configurations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.yarn.server.federation.policies.manager.FederationPolicyManagerupdatePolicy(String queueName, Map<org.apache.hadoop.yarn.server.federation.store.records.SubClusterId, Map<Class, Object>> clusterInfo, org.apache.hadoop.yarn.server.federation.policies.manager.FederationPolicyManager manager) Given a queue, cluster metrics, and policy manager, update the policy to account for the cluster status.Methods inherited from class org.apache.hadoop.yarn.server.globalpolicygenerator.policygenerator.GlobalPolicy
getConf, registerPaths, setConf
-
Constructor Details
-
NoOpGlobalPolicy
public NoOpGlobalPolicy()
-
-
Method Details
-
updatePolicy
public org.apache.hadoop.yarn.server.federation.policies.manager.FederationPolicyManager updatePolicy(String queueName, Map<org.apache.hadoop.yarn.server.federation.store.records.SubClusterId, Map<Class, Object>> clusterInfo, org.apache.hadoop.yarn.server.federation.policies.manager.FederationPolicyManager manager) Description copied from class:GlobalPolicyGiven a queue, cluster metrics, and policy manager, update the policy to account for the cluster status. This method defines the policy generator behavior.- Specified by:
updatePolicyin classGlobalPolicy- Parameters:
queueName- name of the queueclusterInfo- subClusterId map to cluster information about the SubCluster used to make policy decisionsmanager- the FederationPolicyManager for the queue's existing policy the manager may be null, in which case the policy will need to be created- Returns:
- policy manager that handles the updated (or created) policy
-