Class TestRegionServerMetrics
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestRegionServerMetrics
-
Field Summary
Modifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.client.Admin
private static byte[]
static final HBaseClassTestRule
private static SingleProcessHBaseCluster
private static org.apache.hadoop.conf.Configuration
private static org.apache.hadoop.hbase.client.Connection
private static final org.slf4j.Logger
private static MetricsAssertHelper
private static org.apache.hadoop.hbase.regionserver.MetricsRegionServer
private static final int
private static int
private static byte[]
private static byte[]
private static org.apache.hadoop.hbase.regionserver.HRegionServer
private static org.apache.hadoop.hbase.regionserver.MetricsRegionServerSource
(package private) org.apache.hadoop.hbase.client.Table
(package private) org.apache.hadoop.hbase.TableName
private static HBaseTestingUtil
org.junit.rules.TestName
private static byte[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
after()
void
private void
assertCounter
(String metric, long expectedValue) private void
assertGauge
(String metric, long expectedValue) private void
assertRegionMetrics
(String metric, long expectedValue) void
private void
doNGets
(int n, boolean batch) private void
doNPuts
(int n, boolean batch) private 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
void
void
void
void
testGet()
void
void
void
void
void
void
void
void
void
void
void
void
void
-
Field Details
-
Constructor Details
-
TestRegionServerMetrics
public TestRegionServerMetrics()
-
-
Method Details
-
startCluster
- Throws:
Exception
-
after
- Throws:
Exception
-
beforeTestMethod
- Throws:
Exception
-
afterTestMethod
- Throws:
Exception
-
assertCounter
-
assertGauge
-
assertRegionMetrics
- Throws:
Exception
-
doNPuts
- Throws:
Exception
-
doNGets
- Throws:
Exception
-
doScan
- Throws:
IOException
-
testRegionCount
- Throws:
Exception
-
testLocalFiles
- Throws:
Exception
-
testRequestCount
- Throws:
Exception
-
testGet
- Throws:
Exception
-
testMutationsWithoutWal
- Throws:
Exception
-
testStoreCount
- Throws:
Exception
-
testStoreFileAge
- Throws:
Exception
-
testCheckAndPutCount
- Throws:
Exception
-
testIncrement
- Throws:
Exception
-
testAppend
- Throws:
Exception
-
testScanSize
- Throws:
Exception
-
testScanTime
- Throws:
Exception
-
testScanSizeForSmallScan
- Throws:
Exception
-
testMobMetrics
- Throws:
IOException
InterruptedException
-
setMobThreshold
private static org.apache.hadoop.hbase.regionserver.Region setMobThreshold(org.apache.hadoop.hbase.regionserver.Region region, byte[] cfName, long modThreshold) -
testRangeCountMetrics
- Throws:
Exception
-
testAverageRegionSize
- Throws:
Exception
-
testReadBytes
- Throws:
Exception
-