org.apache.hadoop.hbase.master.balancer
Class FavoredNodes

java.lang.Object
  extended by 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.


Nested Class Summary
static class FavoredNodes.Position
           
 
Field Summary
protected static org.apache.commons.logging.Log LOG
           
 
Constructor Summary
FavoredNodes()
           
 
Method Summary
 List<ServerName> getFavoredNodes(HRegionInfo region)
           
 void updateFavoredNodesMap(HRegionInfo region, List<ServerName> servers)
          Add an assignment to the plan
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final org.apache.commons.logging.Log LOG
Constructor Detail

FavoredNodes

public FavoredNodes()
Method Detail

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.