org.apache.hadoop.conf.ConfigurableLoadBasedGlobalPolicy, NoOpGlobalPolicy, UniformWeightedLocalityGlobalPolicypublic abstract class GlobalPolicy
extends java.lang.Object
implements org.apache.hadoop.conf.Configurable
| Constructor | Description |
|---|---|
GlobalPolicy() |
| Modifier and Type | Method | Description |
|---|---|---|
org.apache.hadoop.conf.Configuration |
getConf() |
|
protected java.util.Map<java.lang.Class<?>,java.lang.String> |
registerPaths() |
Return a map of the object type and RM path to request it from - the
framework will query these paths and provide the objects to the policy.
|
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
|
protected abstract org.apache.hadoop.yarn.server.federation.policies.manager.FederationPolicyManager |
updatePolicy(java.lang.String queueName,
java.util.Map<org.apache.hadoop.yarn.server.federation.store.records.SubClusterId,java.util.Map<java.lang.Class,java.lang.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.
|
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf in interface org.apache.hadoop.conf.Configurablepublic org.apache.hadoop.conf.Configuration getConf()
getConf in interface org.apache.hadoop.conf.Configurableprotected java.util.Map<java.lang.Class<?>,java.lang.String> registerPaths()
protected abstract org.apache.hadoop.yarn.server.federation.policies.manager.FederationPolicyManager updatePolicy(java.lang.String queueName,
java.util.Map<org.apache.hadoop.yarn.server.federation.store.records.SubClusterId,java.util.Map<java.lang.Class,java.lang.Object>> clusterInfo,
org.apache.hadoop.yarn.server.federation.policies.manager.FederationPolicyManager manager)
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 createdCopyright © 2008–2025 Apache Software Foundation. All rights reserved.