public class TestRegionLocationFinder extends Object
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static MiniHBaseCluster |
cluster |
private static byte[] |
FAMILY |
private static org.apache.hadoop.hbase.master.balancer.RegionLocationFinder |
finder |
private static int |
ServerNum |
private static org.apache.hadoop.hbase.client.Table |
table |
private static org.apache.hadoop.hbase.TableName |
tableName |
private static HBaseTestingUtility |
TEST_UTIL |
| Constructor and Description |
|---|
TestRegionLocationFinder() |
| Modifier and Type | Method and Description |
|---|---|
private 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 |
setUpBeforeClass() |
static void |
tearDownAfterClass() |
void |
testGetTopBlockLocations() |
void |
testInternalGetTopBlockLocation() |
void |
testMapHostNameToServerName() |
void |
testRefreshAndWait() |
void |
testRefreshRegionsWithChangedLocality() |
public static final HBaseClassTestRule CLASS_RULE
private static final HBaseTestingUtility TEST_UTIL
private static MiniHBaseCluster cluster
private static final org.apache.hadoop.hbase.TableName tableName
private static final byte[] FAMILY
private static org.apache.hadoop.hbase.client.Table table
private static final int ServerNum
private static org.apache.hadoop.hbase.master.balancer.RegionLocationFinder finder
public TestRegionLocationFinder()
public static void setUpBeforeClass() throws Exception
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionpublic void testInternalGetTopBlockLocation() throws Exception
Exceptionpublic void testMapHostNameToServerName() throws Exception
Exceptionpublic void testGetTopBlockLocations() throws Exception
Exceptionpublic void testRefreshAndWait() throws Exception
Exceptionpublic void testRefreshRegionsWithChangedLocality() throws InterruptedException
InterruptedExceptionprivate 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)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.