public class RouterPolicyFacade extends Object
| Constructor and Description | 
|---|
| RouterPolicyFacade(org.apache.hadoop.conf.Configuration conf,
                  FederationStateStoreFacade facade,
                  SubClusterResolver resolver,
                  SubClusterId homeSubcluster) | 
| Modifier and Type | Method and Description | 
|---|---|
| SubClusterId | getHomeSubcluster(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext appSubmissionContext,
                 List<SubClusterId> blackListSubClusters)This method provides a wrapper of all policy functionalities for routing . | 
| void | reset()This method flushes all cached configurations and policies. | 
public RouterPolicyFacade(org.apache.hadoop.conf.Configuration conf,
                          FederationStateStoreFacade facade,
                          SubClusterResolver resolver,
                          SubClusterId homeSubcluster)
                   throws FederationPolicyInitializationException
public SubClusterId getHomeSubcluster(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext appSubmissionContext, List<SubClusterId> blackListSubClusters) throws org.apache.hadoop.yarn.exceptions.YarnException
appSubmissionContext - the ApplicationSubmissionContext that
          has to be routed to an appropriate subCluster for execution.blackListSubClusters - the list of subClusters as identified by
          SubClusterId to blackList from the selection of the home
          subCluster.SubClusterId that will be the "home" for this
         application.org.apache.hadoop.yarn.exceptions.YarnException - if there are issues initializing policies, or no
           valid sub-cluster id could be found for this app.public void reset()
Copyright © 2008–2023 Apache Software Foundation. All rights reserved.