org.apache.hadoop.conf.Configurable, SubClusterResolverDefaultSubClusterResolverImplpublic abstract class AbstractSubClusterResolver extends java.lang.Object implements SubClusterResolver
SubClusterResolver, containing basic
implementations of the read methods.| Constructor | Description |
|---|---|
AbstractSubClusterResolver() |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Map<java.lang.String,SubClusterId> |
getNodeToSubCluster() |
|
java.util.Map<java.lang.String,java.util.Set<SubClusterId>> |
getRackToSubClusters() |
|
SubClusterId |
getSubClusterForNode(java.lang.String nodename) |
Obtain the sub-cluster that a specified node belongs to.
|
java.util.Set<SubClusterId> |
getSubClustersForRack(java.lang.String rackname) |
Obtain the sub-clusters that have nodes on a specified rack.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitloadpublic SubClusterId getSubClusterForNode(java.lang.String nodename) throws org.apache.hadoop.yarn.exceptions.YarnException
SubClusterResolvergetSubClusterForNode in interface SubClusterResolvernodename - the node whose sub-cluster is to be determinedSubClusterId that the
node belongs toorg.apache.hadoop.yarn.exceptions.YarnException - if the node's sub-cluster cannot be resolvedpublic java.util.Set<SubClusterId> getSubClustersForRack(java.lang.String rackname) throws org.apache.hadoop.yarn.exceptions.YarnException
SubClusterResolvergetSubClustersForRack in interface SubClusterResolverrackname - the name of the rackSubClusterId that
have nodes on the given rackorg.apache.hadoop.yarn.exceptions.YarnException - if the sub-cluster of any node on the rack cannot be
resolved, or if the rack name is not recognizedpublic java.util.Map<java.lang.String,SubClusterId> getNodeToSubCluster()
public java.util.Map<java.lang.String,java.util.Set<SubClusterId>> getRackToSubClusters()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.