Class TestRegionLocationFinder
java.lang.Object
org.apache.hadoop.hbase.master.balancer.TestRegionLocationFinder
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static MiniHBaseCluster
private static final byte[]
private static org.apache.hadoop.hbase.master.balancer.RegionLocationFinder
private static final int
private static org.apache.hadoop.hbase.client.Table
private static final org.apache.hadoop.hbase.TableName
private static final HBaseTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static org.apache.hadoop.hbase.HDFSBlocksDistribution
generate
(org.apache.hadoop.hbase.client.RegionInfo region) private org.apache.hadoop.hbase.ClusterMetrics
getMetricsWithLocality
(org.apache.hadoop.hbase.ServerName serverName, byte[] region, float locality) static void
static void
void
void
void
void
void
-
Field Details
-
CLASS_RULE
-
TEST_UTIL
-
cluster
-
tableName
-
FAMILY
-
table
-
ServerNum
- See Also:
-
finder
-
-
Constructor Details
-
TestRegionLocationFinder
public TestRegionLocationFinder()
-
-
Method Details
-
setUpBeforeClass
- Throws:
Exception
-
tearDownAfterClass
- Throws:
Exception
-
testInternalGetTopBlockLocation
- Throws:
Exception
-
testMapHostNameToServerName
- Throws:
Exception
-
testGetTopBlockLocations
- Throws:
Exception
-
testRefreshAndWait
- Throws:
Exception
-
testRefreshRegionsWithChangedLocality
- Throws:
InterruptedException
-
generate
private static org.apache.hadoop.hbase.HDFSBlocksDistribution generate(org.apache.hadoop.hbase.client.RegionInfo region) -
getMetricsWithLocality
private org.apache.hadoop.hbase.ClusterMetrics getMetricsWithLocality(org.apache.hadoop.hbase.ServerName serverName, byte[] region, float locality)
-