Class TestStochasticLoadBalancerHeterogeneousCostRules
java.lang.Object
org.apache.hadoop.hbase.master.balancer.BalancerTestBase
org.apache.hadoop.hbase.master.balancer.TestStochasticLoadBalancerHeterogeneousCostRules
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.master.balancer.BalancerTestBase
BalancerTestBase.MockMapping -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate org.apache.hadoop.hbase.master.balancer.HeterogeneousRegionCountCostFunction(package private) static final Stringprivate static final HBaseTestingUtilityorg.junit.rules.TestNameprivate StringMake a file for rules that is inside a temporary test dir named for the method so it doesn't clash w/ other rule files.Fields inherited from class org.apache.hadoop.hbase.master.balancer.BalancerTestBase
clusterStateMocks, clusterStateMocksWithNoSlop, clusterStateMocksWithSlop, conf, dummyMetricsStochasticBalancer, largeCluster, loadBalancer, regionId -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbefore()static voidprivate static void(package private) static StringcreateRulesFile(String file) (package private) static StringcreateRulesFile(String file, List<String> lines) voidvoidvoidvoidvoidvoidMethods inherited from class org.apache.hadoop.hbase.master.balancer.BalancerTestBase
assertClusterAsBalanced, assertClusterOverallAsBalanced, assertRegionReplicaPlacement, beforeAllTests, convertToList, createRegions, createServerMap, mockCluster, mockClusterServers, mockClusterServers, mockClusterServers, mockClusterServersUnsorted, mockClusterServersWithTables, mockUniformClusterServers, printMock, printStats, randomRegions, randomRegions, randomServer, randomServers, reconcile, returnRegions, returnServer, returnServers, testWithCluster, testWithCluster, testWithClusterWithIteration, testWithClusterWithIteration, uniformRegions, updateLoad
-
Field Details
-
CLASS_RULE
-
name
-
DEFAULT_RULES_FILE_NAME
- See Also:
-
costFunction
-
HTU
-
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.
-
-
Constructor Details
-
TestStochasticLoadBalancerHeterogeneousCostRules
-
-
Method Details
-
beforeClass
- Throws:
IOException
-
before
- Throws:
IOException
-
createRulesFile
- Parameters:
file- Name of file to write rules into.- Returns:
- Full file name of the rules file which is
dir+ DEFAULT_RULES_FILE_NAME. - Throws:
IOException
-
createRulesFile
- Parameters:
file- Name of file to write rules into.- Returns:
- Full file name of the rules file which is
dir+ DEFAULT_RULES_FILE_NAME. - Throws:
IOException
-
cleanup
- Throws:
IOException
-
testNoRules
- Throws:
IOException
-
testBadFormatInRules
- Throws:
IOException
-
testTwoRules
- Throws:
IOException
-
testBadRegexp
- Throws:
IOException
-
testNoOverride
- Throws:
IOException
-
testLoadingFomHDFS
- Throws:
Exception
-