Class BaseHBaseRegionBalancer
java.lang.Object
io.datarouter.client.hbase.balancer.BaseHBaseRegionBalancer
- All Implemented Interfaces:
Callable<Map<DrRegionInfo<?>,org.apache.hadoop.hbase.ServerName>>
- Direct Known Subclasses:
ConsistentHashBalancer,EntityPartitionBalancer,NoOpBalancer
public abstract class BaseHBaseRegionBalancer extends Object implements Callable<Map<DrRegionInfo<?>,org.apache.hadoop.hbase.ServerName>>
-
Field Summary
Fields Modifier and Type Field Description protected DrRegionListFactory.DrRegionListdrhRegionListprotected DrServerListdrhServerListprotected io.datarouter.model.key.entity.EntityPartitioner<?>entityPartitionerprotected SortedMap<DrRegionInfo<?>,org.apache.hadoop.hbase.ServerName>serverByRegionprotected StringtableName -
Constructor Summary
Constructors Modifier Constructor Description protectedBaseHBaseRegionBalancer(String tableName) -
Method Summary
Modifier and Type Method Description voidassertRegionCountsConsistent()protected StringgetServerByRegionStringForDebug()BaseHBaseRegionBalancerinit(io.datarouter.model.key.entity.EntityPartitioner<?> entityPartitioner, DrServerList drhServerList, DrRegionListFactory.DrRegionList drhRegionList)
-
Field Details
-
tableName
-
drhServerList
-
drhRegionList
-
serverByRegion
-
entityPartitioner
protected io.datarouter.model.key.entity.EntityPartitioner<?> entityPartitioner
-
-
Constructor Details
-
Method Details
-
init
public BaseHBaseRegionBalancer init(io.datarouter.model.key.entity.EntityPartitioner<?> entityPartitioner, DrServerList drhServerList, DrRegionListFactory.DrRegionList drhRegionList) -
assertRegionCountsConsistent
public void assertRegionCountsConsistent() -
getServerByRegionStringForDebug
-