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
Exception
public static void teardownAfterClass() throws Exception
Exception
public void setup() throws IOException
IOException
public void testMasterObserver() throws IOException
IOException
public void testRegionServerObserver() throws IOException
IOException
public void testWALObserver() throws IOException
IOException
private void assertPreGetRequestsCounter(Class<?> coprocClass)
public void testRegionObserverSingleRegion() throws IOException
IOException
public void testRegionObserverMultiRegion() throws IOException
IOException
public void testRegionObserverMultiTable() throws IOException
IOException
public void testRegionObserverMultiCoprocessor() throws IOException
IOException
public void testRegionObserverAfterRegionClosed() throws IOException
IOException
public void testRegionObserverEndpoint() throws IOException, com.google.protobuf.ServiceException
IOException
com.google.protobuf.ServiceException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.