public class TestMetaTableMetrics extends Object
| Modifier and Type | Field and Description |
|---|---|
private static org.apache.hadoop.hbase.client.ColumnFamilyDescriptor |
CFD |
static HBaseClassTestRule |
CLASS_RULE |
private static org.apache.hadoop.conf.Configuration |
conf |
private static int |
connectorPort |
private static byte[] |
FAMILY |
private static org.slf4j.Logger |
LOG |
private static org.apache.hadoop.hbase.TableName |
NAME1 |
private static int |
NUM_ROWS |
private static byte[] |
QUALIFIER |
private static HBaseTestingUtility |
UTIL |
private static String |
value |
| Constructor and Description |
|---|
TestMetaTableMetrics() |
| Modifier and Type | Method and Description |
|---|---|
private Set<String> |
readJmxMetrics()
Read the attributes from Hadoop->HBase->RegionServer->MetaTableMetrics in JMX
|
private Set<String> |
readJmxMetricsWithRetry() |
static void |
setupBeforeClass() |
static void |
tearDown() |
void |
test() |
private void |
writeData(org.apache.hadoop.hbase.client.Table t) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility UTIL
private static final org.apache.hadoop.hbase.TableName NAME1
private static final byte[] FAMILY
private static final byte[] QUALIFIER
private static final org.apache.hadoop.hbase.client.ColumnFamilyDescriptor CFD
private static final int NUM_ROWS
private static final String value
private static org.apache.hadoop.conf.Configuration conf
private static int connectorPort
public TestMetaTableMetrics()
public static void setupBeforeClass() throws Exception
Exceptionprivate void writeData(org.apache.hadoop.hbase.client.Table t) throws IOException
IOExceptionprivate Set<String> readJmxMetricsWithRetry() throws IOException
IOExceptionprivate Set<String> readJmxMetrics() throws IOException
IOException - when fails to retrieve jmx metrics.public void test() throws IOException, InterruptedException
IOExceptionInterruptedExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.