public class TestMetaTableMetrics extends Object
| Modifier and Type | Class and Description |
|---|---|
private class |
TestMetaTableMetrics.GetThread |
private class |
TestMetaTableMetrics.PutThread |
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
cf |
private static org.apache.hadoop.hbase.client.ColumnFamilyDescriptor |
CFD |
static HBaseClassTestRule |
CLASS_RULE |
private byte[] |
col |
private static int |
connectorPort |
private static byte[] |
FAMILY |
private static org.slf4j.Logger |
LOG |
private static List<String> |
METRICS_ATTRIBUTE_NAME_POSTFIXES |
private static String |
METRICS_ATTRIBUTE_NAME_PREFIX |
private static org.apache.hadoop.hbase.TableName |
NAME1 |
private int |
nthreads |
private static int |
NUM_ROWS |
private static byte[] |
QUALIFIER |
private byte[] |
tablename |
private static HBaseTestingUtility |
UTIL |
private static String |
value |
| Constructor and Description |
|---|
TestMetaTableMetrics() |
| Modifier and Type | Method and Description |
|---|---|
private org.hamcrest.Matcher<Map<String,Double>> |
containsPositiveJmxAttributesFor(String regexp) |
private void |
getData(int nrows) |
private void |
putData(int nrows) |
private Map<String,Double> |
readMetaTableJmxMetrics()
Read the attributes from Hadoop->HBase->RegionServer->MetaTableMetrics in JMX
|
static void |
setupBeforeClass() |
private void |
startThreadsAndWaitToJoin(Thread[] threads) |
static void |
tearDown() |
void |
testConcurrentAccess() |
void |
testMetaTableMetricsInJmx() |
private void |
writeData(org.apache.hadoop.hbase.TableName tableName) |
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 final String METRICS_ATTRIBUTE_NAME_PREFIX
private static final List<String> METRICS_ATTRIBUTE_NAME_POSTFIXES
private static int connectorPort
private final byte[] cf
private final byte[] col
private byte[] tablename
private final int nthreads
public TestMetaTableMetrics()
public static void setupBeforeClass() throws Exception
Exceptionpublic void testMetaTableMetricsInJmx() throws Exception
Exceptionpublic void testConcurrentAccess()
private void writeData(org.apache.hadoop.hbase.TableName tableName) throws IOException
IOExceptionprivate org.hamcrest.Matcher<Map<String,Double>> containsPositiveJmxAttributesFor(String regexp)
private Map<String,Double> readMetaTableJmxMetrics() throws IOException
IOException - when fails to retrieve jmx metrics.private void putData(int nrows) throws InterruptedException
InterruptedExceptionprivate void getData(int nrows) throws InterruptedException
InterruptedExceptionprivate void startThreadsAndWaitToJoin(Thread[] threads) throws InterruptedException
InterruptedExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.