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
FieldsModifier and TypeFieldDescriptionprotected DrRegionListFactory.DrRegionListprotected DrServerListprotected io.datarouter.model.key.entity.EntityPartitioner<?>protected SortedMap<DrRegionInfo<?>,org.apache.hadoop.hbase.ServerName> protected final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected Stringinit(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
-
BaseHBaseRegionBalancer
-
-
Method Details
-
init
public BaseHBaseRegionBalancer init(io.datarouter.model.key.entity.EntityPartitioner<?> entityPartitioner, DrServerList drhServerList, DrRegionListFactory.DrRegionList drhRegionList) -
assertRegionCountsConsistent
public void assertRegionCountsConsistent() -
getServerByRegionStringForDebug
-