Class TestRegionHDFSBlockLocationFinder
java.lang.Object
org.apache.hadoop.hbase.master.balancer.TestRegionHDFSBlockLocationFinder
-
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private org.apache.hadoop.hbase.master.balancer.RegionHDFSBlockLocationFinder
private static List<org.apache.hadoop.hbase.client.RegionInfo>
private static final Random
private static org.apache.hadoop.hbase.client.TableDescriptor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
assertHostAndWeightEquals
(org.apache.hadoop.hbase.HDFSBlocksDistribution expected, org.apache.hadoop.hbase.HDFSBlocksDistribution actual) 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) void
setUp()
static void
void
void
void
void
void
-
Field Details
-
CLASS_RULE
-
RNG
-
TD
-
REGIONS
-
finder
-
-
Constructor Details
-
TestRegionHDFSBlockLocationFinder
public TestRegionHDFSBlockLocationFinder()
-
-
Method Details
-
generate
private static org.apache.hadoop.hbase.HDFSBlocksDistribution generate(org.apache.hadoop.hbase.client.RegionInfo region) -
setUpBeforeClass
-
setUp
-
testMapHostNameToServerName
- Throws:
Exception
-
testRefreshAndWait
- Throws:
Exception
-
assertHostAndWeightEquals
private void assertHostAndWeightEquals(org.apache.hadoop.hbase.HDFSBlocksDistribution expected, org.apache.hadoop.hbase.HDFSBlocksDistribution actual) -
testGetBlockDistribution
-
testGetTopBlockLocations
-
testRefreshRegionsWithChangedLocality
- Throws:
InterruptedException
-
getMetricsWithLocality
private org.apache.hadoop.hbase.ClusterMetrics getMetricsWithLocality(org.apache.hadoop.hbase.ServerName serverName, byte[] region, float locality)
-