public abstract class AbstractSubClusterResolver extends Object implements SubClusterResolver
SubClusterResolver, containing basic
implementations of the read methods.| Constructor and Description |
|---|
AbstractSubClusterResolver() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,SubClusterId> |
getNodeToSubCluster() |
Map<String,Set<SubClusterId>> |
getRackToSubClusters() |
SubClusterId |
getSubClusterForNode(String nodename)
Obtain the sub-cluster that a specified node belongs to.
|
Set<SubClusterId> |
getSubClustersForRack(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(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 Set<SubClusterId> getSubClustersForRack(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 Map<String,SubClusterId> getNodeToSubCluster()
public Map<String,Set<SubClusterId>> getRackToSubClusters()
Copyright © 2008–2022 Apache Software Foundation. All rights reserved.