public class WeightedRandomRouterPolicy extends AbstractRouterPolicy
| Constructor and Description | 
|---|
| WeightedRandomRouterPolicy() | 
| Modifier and Type | Method and Description | 
|---|---|
| SubClusterId | getHomeSubcluster(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext appSubmissionContext,
                 List<SubClusterId> blacklist)Determines the sub-cluster that the user application submission should be
 routed to. | 
validate, validategetActiveSubclusters, getIsDirty, getPolicyContext, getPolicyInfo, reinitialize, setPolicyContext, setPolicyInfoclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreinitializepublic SubClusterId getHomeSubcluster(org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext appSubmissionContext, List<SubClusterId> blacklist) throws org.apache.hadoop.yarn.exceptions.YarnException
FederationRouterPolicyappSubmissionContext - the ApplicationSubmissionContext that
          has to be routed to an appropriate subCluster for execution.blacklist - 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 the policy cannot determine a viable subcluster.Copyright © 2008–2023 Apache Software Foundation. All rights reserved.