public class TestRegionServerMetrics extends Object
| Modifier and Type | Field and Description |
|---|---|
private static org.apache.hadoop.hbase.client.Admin |
admin |
private static byte[] |
cf |
static HBaseClassTestRule |
CLASS_RULE |
private static MiniHBaseCluster |
cluster |
private static org.apache.hadoop.conf.Configuration |
conf |
private static org.apache.hadoop.hbase.client.Connection |
connection |
private static org.slf4j.Logger |
LOG |
private static MetricsAssertHelper |
metricsHelper |
private static org.apache.hadoop.hbase.regionserver.MetricsRegionServer |
metricsRegionServer |
private static int |
NUM_SCAN_NEXT |
private static int |
numScanNext |
private static byte[] |
qualifier |
private static byte[] |
row |
private static org.apache.hadoop.hbase.regionserver.HRegionServer |
rs |
private static org.apache.hadoop.hbase.regionserver.MetricsRegionServerSource |
serverSource |
(package private) org.apache.hadoop.hbase.client.Table |
table |
(package private) org.apache.hadoop.hbase.TableName |
tableName |
private static boolean |
TABLES_ON_MASTER |
private static HBaseTestingUtility |
TEST_UTIL |
org.junit.rules.TestName |
testName |
private static byte[] |
val |
| Constructor and Description |
|---|
TestRegionServerMetrics() |
| Modifier and Type | Method and Description |
|---|---|
static void |
after() |
void |
afterTestMethod() |
void |
assertCounter(String metric,
long expectedValue) |
void |
assertGauge(String metric,
long expectedValue) |
void |
assertRegionMetrics(String metric,
long expectedValue) |
void |
beforeTestMethod() |
void |
doNGets(int n,
boolean batch) |
void |
doNPuts(int n,
boolean batch) |
void |
doScan(int n,
boolean caching) |
private static org.apache.hadoop.hbase.regionserver.Region |
setMobThreshold(org.apache.hadoop.hbase.regionserver.Region region,
byte[] cfName,
long modThreshold) |
static void |
startCluster() |
void |
testAppend() |
void |
testAverageRegionSize() |
void |
testCheckAndPutCount() |
void |
testGet() |
void |
testIncrement() |
void |
testLocalFiles() |
void |
testMobMetrics() |
void |
testMutationsWithoutWal() |
void |
testRangeCountMetrics() |
void |
testRegionCount() |
void |
testRequestCount() |
void |
testScanSize() |
void |
testScanSizeForSmallScan() |
void |
testScanTime() |
void |
testStoreCount() |
void |
testStoreFileAge() |
void |
waitTableDeleted(org.apache.hadoop.hbase.TableName name,
long timeoutInMillis) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
public org.junit.rules.TestName testName
private static MetricsAssertHelper metricsHelper
private static MiniHBaseCluster cluster
private static org.apache.hadoop.hbase.regionserver.HRegionServer rs
private static org.apache.hadoop.conf.Configuration conf
private static HBaseTestingUtility TEST_UTIL
private static org.apache.hadoop.hbase.client.Connection connection
private static org.apache.hadoop.hbase.regionserver.MetricsRegionServer metricsRegionServer
private static org.apache.hadoop.hbase.regionserver.MetricsRegionServerSource serverSource
private static final int NUM_SCAN_NEXT
private static int numScanNext
private static byte[] cf
private static byte[] row
private static byte[] qualifier
private static byte[] val
private static org.apache.hadoop.hbase.client.Admin admin
private static boolean TABLES_ON_MASTER
org.apache.hadoop.hbase.TableName tableName
org.apache.hadoop.hbase.client.Table table
public TestRegionServerMetrics()
public static void startCluster() throws Exception
Exceptionpublic void beforeTestMethod() throws Exception
Exceptionpublic void afterTestMethod() throws Exception
Exceptionpublic void waitTableDeleted(org.apache.hadoop.hbase.TableName name, long timeoutInMillis) throws Exception
Exceptionpublic void assertCounter(String metric, long expectedValue)
public void assertGauge(String metric, long expectedValue)
public void assertRegionMetrics(String metric, long expectedValue) throws Exception
Exceptionpublic void doScan(int n, boolean caching) throws IOException
IOExceptionpublic void testRegionCount() throws Exception
Exceptionpublic void testLocalFiles() throws Exception
Exceptionpublic void testRequestCount() throws Exception
Exceptionpublic void testMutationsWithoutWal() throws Exception
Exceptionpublic void testStoreCount() throws Exception
Exceptionpublic void testStoreFileAge() throws Exception
Exceptionpublic void testCheckAndPutCount() throws Exception
Exceptionpublic void testIncrement() throws Exception
Exceptionpublic void testAppend() throws Exception
Exceptionpublic void testScanSize() throws Exception
Exceptionpublic void testScanTime() throws Exception
Exceptionpublic void testScanSizeForSmallScan() throws Exception
Exceptionpublic void testMobMetrics() throws IOException, InterruptedException
IOExceptionInterruptedExceptionprivate static org.apache.hadoop.hbase.regionserver.Region setMobThreshold(org.apache.hadoop.hbase.regionserver.Region region, byte[] cfName, long modThreshold)
public void testRangeCountMetrics() throws Exception
Exceptionpublic void testAverageRegionSize() throws Exception
ExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.