public class StochasticBalancerTestBase extends BalancerTestBase
BalancerTestBase.MockMapping
Modifier and Type | Field and Description |
---|---|
protected static DummyMetricsStochasticBalancer |
dummyMetricsStochasticBalancer |
protected static org.apache.hadoop.hbase.master.balancer.StochasticLoadBalancer |
loadBalancer |
private static org.slf4j.Logger |
LOG |
clusterStateMocks, clusterStateMocksWithNoSlop, clusterStateMocksWithSlop, conf, largeCluster, regionId
Constructor and Description |
---|
StochasticBalancerTestBase() |
Modifier and Type | Method and Description |
---|---|
static void |
beforeAllTests() |
protected void |
testWithCluster(int numNodes,
int numRegions,
int numRegionsPerServer,
int replication,
int numTables,
boolean assertFullyBalanced,
boolean assertFullyBalancedForReplicas) |
protected void |
testWithCluster(Map<org.apache.hadoop.hbase.ServerName,List<org.apache.hadoop.hbase.client.RegionInfo>> serverMap,
org.apache.hadoop.hbase.master.RackManager rackManager,
boolean assertFullyBalanced,
boolean assertFullyBalancedForReplicas) |
protected void |
testWithClusterWithIteration(int numNodes,
int numRegions,
int numRegionsPerServer,
int replication,
int numTables,
boolean assertFullyBalanced,
boolean assertFullyBalancedForReplicas) |
protected void |
testWithClusterWithIteration(Map<org.apache.hadoop.hbase.ServerName,List<org.apache.hadoop.hbase.client.RegionInfo>> serverMap,
org.apache.hadoop.hbase.master.RackManager rackManager,
boolean assertFullyBalanced,
boolean assertFullyBalancedForReplicas) |
assertClusterAsBalanced, assertClusterOverallAsBalanced, assertRegionReplicaPlacement, convertToList, createRegions, createServerMap, mockCluster, mockClusterServers, mockClusterServers, mockClusterServers, mockClusterServersUnsorted, mockClusterServersWithTables, mockUniformClusterServers, printMock, printStats, randomRegions, randomRegions, randomServer, randomServers, reconcile, returnRegions, returnServer, returnServers, uniformRegions, updateLoad
private static final org.slf4j.Logger LOG
protected static org.apache.hadoop.hbase.master.balancer.StochasticLoadBalancer loadBalancer
protected static DummyMetricsStochasticBalancer dummyMetricsStochasticBalancer
public StochasticBalancerTestBase()
public static void beforeAllTests() throws Exception
Exception
protected void testWithCluster(int numNodes, int numRegions, int numRegionsPerServer, int replication, int numTables, boolean assertFullyBalanced, boolean assertFullyBalancedForReplicas)
protected void testWithClusterWithIteration(int numNodes, int numRegions, int numRegionsPerServer, int replication, int numTables, boolean assertFullyBalanced, boolean assertFullyBalancedForReplicas)
protected void testWithCluster(Map<org.apache.hadoop.hbase.ServerName,List<org.apache.hadoop.hbase.client.RegionInfo>> serverMap, org.apache.hadoop.hbase.master.RackManager rackManager, boolean assertFullyBalanced, boolean assertFullyBalancedForReplicas)
protected void testWithClusterWithIteration(Map<org.apache.hadoop.hbase.ServerName,List<org.apache.hadoop.hbase.client.RegionInfo>> serverMap, org.apache.hadoop.hbase.master.RackManager rackManager, boolean assertFullyBalanced, boolean assertFullyBalancedForReplicas)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.