Package org.apache.hadoop.hbase.master
Class TestMasterDryRunBalancer
java.lang.Object
org.apache.hadoop.hbase.master.TestMasterDryRunBalancer
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static final byte[]
private static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
assertServerContainsAllRegions
(org.apache.hadoop.hbase.ServerName serverName, org.apache.hadoop.hbase.TableName tableName) private org.apache.hadoop.hbase.TableName
createTable
(String table, int numRegions) void
shutdown()
void
private org.apache.hadoop.hbase.regionserver.HRegionServer
unbalance
(org.apache.hadoop.hbase.master.HMaster master, org.apache.hadoop.hbase.TableName tableName) private void
waitForRegionsToSettle
(org.apache.hadoop.hbase.master.HMaster master)
-
Field Details
-
CLASS_RULE
-
TEST_UTIL
-
FAMILYNAME
-
-
Constructor Details
-
TestMasterDryRunBalancer
public TestMasterDryRunBalancer()
-
-
Method Details
-
shutdown
- Throws:
Exception
-
testDryRunBalancer
- Throws:
Exception
-
createTable
private org.apache.hadoop.hbase.TableName createTable(String table, int numRegions) throws IOException - Throws:
IOException
-
unbalance
private org.apache.hadoop.hbase.regionserver.HRegionServer unbalance(org.apache.hadoop.hbase.master.HMaster master, org.apache.hadoop.hbase.TableName tableName) throws Exception - Throws:
Exception
-
assertServerContainsAllRegions
private void assertServerContainsAllRegions(org.apache.hadoop.hbase.ServerName serverName, org.apache.hadoop.hbase.TableName tableName) throws IOException - Throws:
IOException
-
waitForRegionsToSettle
-