public abstract class GlobalPolicy extends Object implements org.apache.hadoop.conf.Configurable
Constructor and Description |
---|
GlobalPolicy() |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.conf.Configuration |
getConf() |
protected Map<Class<?>,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(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.
|
public void setConf(org.apache.hadoop.conf.Configuration conf)
setConf
in interface org.apache.hadoop.conf.Configurable
public org.apache.hadoop.conf.Configuration getConf()
getConf
in interface org.apache.hadoop.conf.Configurable
protected Map<Class<?>,String> registerPaths()
protected abstract 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)
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–2024 Apache Software Foundation. All rights reserved.