public class TestStochasticLoadBalancerHeterogeneousCostRules extends StochasticBalancerTestBase
BalancerTestBase.MockMapping
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private org.apache.hadoop.hbase.master.balancer.HeterogeneousRegionCountCostFunction |
costFunction |
private static HBaseCommonTestingUtil |
HTU |
org.junit.rules.TestName |
name |
private String |
rulesFilename
Make a file for rules that is inside a temporary test dir named for the method so it doesn't
clash w/ other rule files.
|
dummyMetricsStochasticBalancer, loadBalancer
clusterStateMocks, clusterStateMocksWithNoSlop, clusterStateMocksWithSlop, conf, largeCluster, regionId
Constructor and Description |
---|
TestStochasticLoadBalancerHeterogeneousCostRules() |
Modifier and Type | Method and Description |
---|---|
void |
before() |
static void |
beforeClass() |
void |
testBadFormatInRules() |
void |
testBadRegexp() |
void |
testNoOverride() |
void |
testNoRules() |
void |
testTwoRules() |
beforeAllTests, testWithCluster, testWithCluster, testWithClusterWithIteration, testWithClusterWithIteration
assertClusterAsBalanced, assertClusterOverallAsBalanced, assertRegionReplicaPlacement, convertToList, createRegions, createServerMap, mockCluster, mockClusterServers, mockClusterServers, mockClusterServers, mockClusterServersWithTables, mockUniformClusterServers, printMock, printStats, randomRegions, randomRegions, randomServer, randomServers, reconcile, returnRegions, returnServer, returnServers, uniformRegions, updateLoad
public static final HBaseClassTestRule CLASS_RULE
public org.junit.rules.TestName name
private org.apache.hadoop.hbase.master.balancer.HeterogeneousRegionCountCostFunction costFunction
private static final HBaseCommonTestingUtil HTU
private String rulesFilename
public TestStochasticLoadBalancerHeterogeneousCostRules()
public static void beforeClass() throws IOException
IOException
public void before() throws IOException
IOException
public void testNoRules() throws IOException
IOException
public void testBadFormatInRules() throws IOException
IOException
public void testTwoRules() throws IOException
IOException
public void testBadRegexp() throws IOException
IOException
public void testNoOverride() throws IOException
IOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.