public class TestRegionMetrics extends Object
Modifier and Type | Field and Description |
---|---|
private static org.apache.hadoop.hbase.client.Admin |
admin |
static HBaseClassTestRule |
CLASS_RULE |
private static org.slf4j.Logger |
LOG |
private static int |
MSG_INTERVAL |
private static org.apache.hadoop.hbase.TableName |
TABLE_1 |
private static org.apache.hadoop.hbase.TableName |
TABLE_2 |
private static org.apache.hadoop.hbase.TableName |
TABLE_3 |
private static org.apache.hadoop.hbase.TableName[] |
tables |
private static HBaseTestingUtility |
UTIL |
Constructor and Description |
---|
TestRegionMetrics() |
Modifier and Type | Method and Description |
---|---|
static void |
afterClass() |
static void |
beforeClass() |
private void |
checkMetricsValue(List<org.apache.hadoop.hbase.RegionMetrics> regionMetrics,
org.apache.hadoop.hbase.ServerMetrics serverMetrics) |
private void |
checkRegionsAndRegionMetrics(Collection<org.apache.hadoop.hbase.client.RegionInfo> regions,
Collection<org.apache.hadoop.hbase.RegionMetrics> regionMetrics) |
void |
testRegionMetrics() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility UTIL
private static org.apache.hadoop.hbase.client.Admin admin
private static final org.apache.hadoop.hbase.TableName TABLE_1
private static final org.apache.hadoop.hbase.TableName TABLE_2
private static final org.apache.hadoop.hbase.TableName TABLE_3
private static final org.apache.hadoop.hbase.TableName[] tables
private static final int MSG_INTERVAL
public TestRegionMetrics()
public static void beforeClass() throws Exception
Exception
public static void afterClass() throws Exception
Exception
public void testRegionMetrics() throws Exception
Exception
private void checkMetricsValue(List<org.apache.hadoop.hbase.RegionMetrics> regionMetrics, org.apache.hadoop.hbase.ServerMetrics serverMetrics) throws InvocationTargetException, IllegalAccessException
private void checkRegionsAndRegionMetrics(Collection<org.apache.hadoop.hbase.client.RegionInfo> regions, Collection<org.apache.hadoop.hbase.RegionMetrics> regionMetrics)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.