Class TestRegionLocationFinder
java.lang.Object
org.apache.hadoop.hbase.master.balancer.TestRegionLocationFinder
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static MiniHBaseClusterprivate static final byte[]private static org.apache.hadoop.hbase.master.balancer.RegionLocationFinderprivate static final intprivate static org.apache.hadoop.hbase.client.Tableprivate static final org.apache.hadoop.hbase.TableNameprivate static final HBaseTestingUtility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static org.apache.hadoop.hbase.HDFSBlocksDistributiongenerate(org.apache.hadoop.hbase.client.RegionInfo region) private org.apache.hadoop.hbase.ClusterMetricsgetMetricsWithLocality(org.apache.hadoop.hbase.ServerName serverName, byte[] region, float locality) static voidstatic voidvoidvoidvoidvoidvoid
-
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)
-