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
Exception
public void beforeTestMethod() throws Exception
Exception
public void afterTestMethod() throws Exception
Exception
public void waitTableDeleted(org.apache.hadoop.hbase.TableName name, long timeoutInMillis) throws Exception
Exception
public void assertCounter(String metric, long expectedValue)
public void assertGauge(String metric, long expectedValue)
public void assertRegionMetrics(String metric, long expectedValue) throws Exception
Exception
public void doScan(int n, boolean caching) throws IOException
IOException
public void testRegionCount() throws Exception
Exception
public void testLocalFiles() throws Exception
Exception
public void testRequestCount() throws Exception
Exception
public void testMutationsWithoutWal() throws Exception
Exception
public void testStoreCount() throws Exception
Exception
public void testStoreFileAge() throws Exception
Exception
public void testCheckAndPutCount() throws Exception
Exception
public void testIncrement() throws Exception
Exception
public void testAppend() throws Exception
Exception
public void testScanSize() throws Exception
Exception
public void testScanTime() throws Exception
Exception
public void testScanSizeForSmallScan() throws Exception
Exception
public void testMobMetrics() throws IOException, InterruptedException
IOException
InterruptedException
private static org.apache.hadoop.hbase.regionserver.Region setMobThreshold(org.apache.hadoop.hbase.regionserver.Region region, byte[] cfName, long modThreshold)
public void testRangeCountMetrics() throws Exception
Exception
public void testAverageRegionSize() throws Exception
Exception
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.