org.apache.hadoop.hbase.master.balancer
Class BaseLoadBalancer.Cluster

java.lang.Object
  extended by org.apache.hadoop.hbase.master.balancer.BaseLoadBalancer.Cluster
Enclosing class:
BaseLoadBalancer

protected static class BaseLoadBalancer.Cluster
extends Object

An efficient array based implementation similar to ClusterState for keeping the status of the cluster in terms of region assignment and distribution. To be used by LoadBalancers.


Constructor Summary
protected BaseLoadBalancer.Cluster(Map<ServerName,List<HRegionInfo>> clusterState, Map<String,Deque<RegionLoad>> loads, org.apache.hadoop.hbase.master.balancer.RegionLocationFinder regionFinder)
           
 
Method Summary
 void moveOrSwapRegion(int lServer, int rServer, int lRegion, int rRegion)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BaseLoadBalancer.Cluster

protected BaseLoadBalancer.Cluster(Map<ServerName,List<HRegionInfo>> clusterState,
                                   Map<String,Deque<RegionLoad>> loads,
                                   org.apache.hadoop.hbase.master.balancer.RegionLocationFinder regionFinder)
Method Detail

moveOrSwapRegion

public void moveOrSwapRegion(int lServer,
                             int rServer,
                             int lRegion,
                             int rRegion)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.