public class TestMetricsConnection extends Object
Modifier and Type | Field and Description |
---|---|
private static ThreadPoolExecutor |
BATCH_POOL |
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.conf.Configuration |
conf |
private static org.apache.hadoop.hbase.client.MetricsConnection |
METRICS |
private static String |
MOCK_CONN_STR |
boolean |
tableMetricsEnabled |
Constructor and Description |
---|
TestMetricsConnection() |
Modifier and Type | Method and Description |
---|---|
void |
after() |
void |
before() |
static List<Boolean> |
params() |
void |
testMetricsConnectionScope() |
void |
testMetricsWithMultiConnections() |
private void |
testRpcCallMetrics(String table,
int expectedVal) |
private void |
testRpcCallTableMetrics(String table,
int expectedVal) |
void |
testStaticMetrics() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.apache.hadoop.conf.Configuration conf
private static org.apache.hadoop.hbase.client.MetricsConnection METRICS
private static final ThreadPoolExecutor BATCH_POOL
private static final String MOCK_CONN_STR
public boolean tableMetricsEnabled
public TestMetricsConnection()
public void before()
public void after()
public void testMetricsConnectionScope() throws IOException
IOException
public void testMetricsWithMultiConnections() throws IOException
IOException
public void testStaticMetrics() throws IOException
IOException
private void testRpcCallTableMetrics(String table, int expectedVal)
private void testRpcCallMetrics(String table, int expectedVal)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.