Class TestCoprocessorMetrics
java.lang.Object
org.apache.hadoop.hbase.coprocessor.TestCoprocessorMetrics
Testing of coprocessor metrics end-to-end.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classMasterObserver that has a Timer metric for create table operation.static classRegionEndpoint to test metrics from endpoint callsstatic classRegionObserver that has a Counter for preGet()static classstatic classRegionServerObserver that has a Counter for rollWAL requests.static classWALObserver that has a Counter for walEdits written. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final byte[]static final HBaseClassTestRuleprivate static final byte[]private static final org.slf4j.Loggerorg.junit.rules.TestNameprivate static final HBaseTestingUtility -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidassertPreGetRequestsCounter(Class<?> coprocClass) Helper for below testsvoidsetup()static voidstatic voidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Field Details
-
CLASS_RULE
-
LOG
-
UTIL
-
foo
-
bar
-
name
-
-
Constructor Details
-
TestCoprocessorMetrics
public TestCoprocessorMetrics()
-
-
Method Details
-
setupBeforeClass
- Throws:
Exception
-
teardownAfterClass
- Throws:
Exception
-
setup
- Throws:
IOException
-
testMasterObserver
- Throws:
IOException
-
testRegionServerObserver
- Throws:
IOException
-
testWALObserver
- Throws:
IOException
-
assertPreGetRequestsCounter
Helper for below tests -
testRegionObserverSingleRegion
- Throws:
IOException
-
testRegionObserverMultiRegion
- Throws:
IOException
-
testRegionObserverMultiTable
- Throws:
IOException
-
testRegionObserverMultiCoprocessor
- Throws:
IOException
-
testRegionObserverAfterRegionClosed
- Throws:
IOException
-
testRegionObserverEndpoint
- Throws:
IOExceptioncom.google.protobuf.ServiceException
-