org.apache.hadoop.hbase.master.balancer
Class FavoredNodes
java.lang.Object
org.apache.hadoop.hbase.master.balancer.FavoredNodes
@InterfaceAudience.Private
public class FavoredNodes
- extends Object
This class contains the mapping information between each region and
its favored region server list. Used by FavoredNodeLoadBalancer
set
of classes and from unit tests (hence the class is public)
All the access to this class is thread-safe.
Field Summary |
protected static org.apache.commons.logging.Log |
LOG
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
protected static final org.apache.commons.logging.Log LOG
FavoredNodes
public FavoredNodes()
updateFavoredNodesMap
public void updateFavoredNodesMap(HRegionInfo region,
List<ServerName> servers)
- Add an assignment to the plan
- Parameters:
region
- servers
-
getFavoredNodes
public List<ServerName> getFavoredNodes(HRegionInfo region)
- Parameters:
region
-
- Returns:
- the list of favored region server for this region based on the plan
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.