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 MiniHBaseCluster
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 boolean
private static HBaseTestingUtility
org.junit.rules.TestName
private static byte[]
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
after()
void
void
assertCounter
(String metric, long expectedValue) void
assertGauge
(String metric, long expectedValue) void
assertRegionMetrics
(String metric, long expectedValue) void
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
void
void
void
void
testGet()
void
void
void
void
void
void
void
void
void
void
void
void
void
void
waitTableDeleted
(org.apache.hadoop.hbase.TableName name, long timeoutInMillis)
-
Field Details
-
Constructor Details
-
TestRegionServerMetrics
public TestRegionServerMetrics()
-
-
Method Details
-
startCluster
- Throws:
Exception
-
after
- Throws:
Exception
-
beforeTestMethod
- Throws:
Exception
-
afterTestMethod
- Throws:
Exception
-
waitTableDeleted
public void waitTableDeleted(org.apache.hadoop.hbase.TableName name, long timeoutInMillis) throws Exception - 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
-