Class ConsistentHashBalancer
java.lang.Object
io.datarouter.client.hbase.balancer.BaseHBaseRegionBalancer
io.datarouter.client.hbase.balancer.imp.ConsistentHashBalancer
- All Implemented Interfaces:
Callable<Map<DrRegionInfo<?>,org.apache.hadoop.hbase.ServerName>>
-
Field Summary
FieldsFields inherited from class io.datarouter.client.hbase.balancer.BaseHBaseRegionBalancer
drhRegionList, drhServerList, entityPartitioner, serverByRegion, tableName -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildServerHashRing(DrServerList servers, int numBucketsPerNode) static org.apache.hadoop.hbase.ServerNamecalcServerNameForItem(SortedMap<Long, org.apache.hadoop.hbase.ServerName> consistentHashRing, byte[] consistentHashInput) Map<DrRegionInfo<?>,org.apache.hadoop.hbase.ServerName> call()Methods inherited from class io.datarouter.client.hbase.balancer.BaseHBaseRegionBalancer
assertRegionCountsConsistent, getServerByRegionStringForDebug, init
-
Field Details
-
BUCKETS_PER_NODE
-
-
Constructor Details
-
ConsistentHashBalancer
-
-
Method Details
-
call
-
buildServerHashRing
public static SortedMap<Long,org.apache.hadoop.hbase.ServerName> buildServerHashRing(DrServerList servers, int numBucketsPerNode) -
calcServerNameForItem
-