Class TestRegionStates
java.lang.Object
org.apache.hadoop.hbase.master.assignment.TestRegionStates
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static ExecutorCompletionService<Object>
private static final org.slf4j.Logger
private static ThreadPoolExecutor
protected static final HBaseTestingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
addRegionNode
(org.apache.hadoop.hbase.master.assignment.RegionStates stateMap, org.apache.hadoop.hbase.TableName tableName, long regionId) private void
checkTableRegions
(org.apache.hadoop.hbase.master.assignment.RegionStates stateMap, org.apache.hadoop.hbase.TableName tableName, int nregions) private org.apache.hadoop.hbase.client.RegionInfo
createRegionInfo
(org.apache.hadoop.hbase.TableName tableName, long regionId) static void
setUp()
static void
tearDown()
void
testPerf()
void
void
void
void
private static void
waitExecutorService
(int count)
-
Field Details
-
CLASS_RULE
-
LOG
-
UTIL
-
threadPool
-
executorService
-
-
Constructor Details
-
TestRegionStates
public TestRegionStates()
-
-
Method Details
-
setUp
- Throws:
Exception
-
tearDown
- Throws:
Exception
-
testSetup
-
testTearDown
- Throws:
Exception
-
waitExecutorService
- Throws:
Exception
-
testRegionDoubleCreation
- Throws:
Exception
-
checkTableRegions
private void checkTableRegions(org.apache.hadoop.hbase.master.assignment.RegionStates stateMap, org.apache.hadoop.hbase.TableName tableName, int nregions) -
addRegionNode
private void addRegionNode(org.apache.hadoop.hbase.master.assignment.RegionStates stateMap, org.apache.hadoop.hbase.TableName tableName, long regionId) -
createRegionInfo
private org.apache.hadoop.hbase.client.RegionInfo createRegionInfo(org.apache.hadoop.hbase.TableName tableName, long regionId) -
testPerf
- Throws:
Exception
-
testPerfSingleThread
-