public class TestCoprocessorMetrics extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TestCoprocessorMetrics.CustomMasterObserver
MasterObserver that has a Timer metric for create table operation.
|
static class |
TestCoprocessorMetrics.CustomRegionEndpoint
RegionEndpoint to test metrics from endpoint calls
|
static class |
TestCoprocessorMetrics.CustomRegionObserver
RegionObserver that has a Counter for preGet()
|
static class |
TestCoprocessorMetrics.CustomRegionObserver2 |
static class |
TestCoprocessorMetrics.CustomRegionServerObserver
RegionServerObserver that has a Counter for rollWAL requests.
|
static class |
TestCoprocessorMetrics.CustomWALObserver
WALObserver that has a Counter for walEdits written.
|
| Modifier and Type | Field and Description |
|---|---|
private static byte[] |
bar |
static HBaseClassTestRule |
CLASS_RULE |
private static byte[] |
foo |
private static org.slf4j.Logger |
LOG |
org.junit.rules.TestName |
name |
private static HBaseTestingUtility |
UTIL |
| Constructor and Description |
|---|
TestCoprocessorMetrics() |
| Modifier and Type | Method and Description |
|---|---|
private void |
assertPreGetRequestsCounter(Class<?> coprocClass)
Helper for below tests
|
void |
setup() |
static void |
setupBeforeClass() |
static void |
teardownAfterClass() |
void |
testMasterObserver() |
void |
testRegionObserverAfterRegionClosed() |
void |
testRegionObserverEndpoint() |
void |
testRegionObserverMultiCoprocessor() |
void |
testRegionObserverMultiRegion() |
void |
testRegionObserverMultiTable() |
void |
testRegionObserverSingleRegion() |
void |
testRegionServerObserver() |
void |
testWALObserver() |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
private static final HBaseTestingUtility UTIL
private static final byte[] foo
private static final byte[] bar
public org.junit.rules.TestName name
public TestCoprocessorMetrics()
public static void setupBeforeClass() throws Exception
Exceptionpublic static void teardownAfterClass() throws Exception
Exceptionpublic void setup() throws IOException
IOExceptionpublic void testMasterObserver() throws IOException
IOExceptionpublic void testRegionServerObserver() throws IOException
IOExceptionpublic void testWALObserver() throws IOException
IOExceptionprivate void assertPreGetRequestsCounter(Class<?> coprocClass)
public void testRegionObserverSingleRegion() throws IOException
IOExceptionpublic void testRegionObserverMultiRegion() throws IOException
IOExceptionpublic void testRegionObserverMultiTable() throws IOException
IOExceptionpublic void testRegionObserverMultiCoprocessor() throws IOException
IOExceptionpublic void testRegionObserverAfterRegionClosed() throws IOException
IOExceptionpublic void testRegionObserverEndpoint() throws IOException, com.google.protobuf.ServiceException
IOExceptioncom.google.protobuf.ServiceExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.