Class TestCoprocessorMetrics
java.lang.Object
org.apache.hadoop.hbase.coprocessor.TestCoprocessorMetrics
Testing of coprocessor metrics end-to-end.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
MasterObserver that has a Timer metric for create table operation.static class
RegionEndpoint to test metrics from endpoint callsstatic class
RegionObserver that has a Counter for preGet()static class
static class
RegionServerObserver that has a Counter for rollWAL requests.static class
WALObserver that has a Counter for walEdits written. -
Field Summary
Modifier and TypeFieldDescriptionprivate static final byte[]
static final HBaseClassTestRule
private static final byte[]
private static final org.slf4j.Logger
org.junit.rules.TestName
private static final HBaseTestingUtility
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
assertPreGetRequestsCounter
(Class<?> coprocClass) Helper for below testsvoid
setup()
static void
static void
void
void
void
void
void
void
void
void
void
-
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:
IOException
com.google.protobuf.ServiceException
-