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
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void testInternalGetTopBlockLocation() throws Exception
Exception
public void testMapHostNameToServerName() throws Exception
Exception
public void testGetTopBlockLocations() throws Exception
Exception
public void testRefreshAndWait() throws Exception
Exception
public void testRefreshRegionsWithChangedLocality() throws InterruptedException
InterruptedException
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)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.