Class TestRegionServerMetrics
java.lang.Object
org.apache.hadoop.hbase.regionserver.TestRegionServerMetrics
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static org.apache.hadoop.hbase.client.Adminprivate static byte[]static final HBaseClassTestRuleprivate static MiniHBaseClusterprivate static org.apache.hadoop.conf.Configurationprivate static org.apache.hadoop.hbase.client.Connectionprivate static final org.slf4j.Loggerprivate static MetricsAssertHelperprivate static org.apache.hadoop.hbase.regionserver.MetricsRegionServerprivate static final intprivate static intprivate static byte[]private static byte[]private static org.apache.hadoop.hbase.regionserver.HRegionServerprivate static org.apache.hadoop.hbase.regionserver.MetricsRegionServerSource(package private) org.apache.hadoop.hbase.client.Table(package private) org.apache.hadoop.hbase.TableNameprivate static booleanprivate static HBaseTestingUtilityorg.junit.rules.TestNameprivate static byte[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidafter()voidvoidassertCounter(String metric, long expectedValue) voidassertGauge(String metric, long expectedValue) voidassertRegionMetrics(String metric, long expectedValue) voidvoiddoNGets(int n, boolean batch) voiddoNPuts(int n, boolean batch) voiddoScan(int n, boolean caching) private static org.apache.hadoop.hbase.regionserver.RegionsetMobThreshold(org.apache.hadoop.hbase.regionserver.Region region, byte[] cfName, long modThreshold) static voidvoidvoidvoidvoidtestGet()voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidwaitTableDeleted(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:
IOExceptionInterruptedException
-
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
-