public class TestServerCustomProtocol extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TestServerCustomProtocol.PingHandler |
| Modifier and Type | Field and Description |
|---|---|
static HBaseClassTestRule |
CLASS_RULE |
(package private) static String |
HELLO |
private static org.slf4j.Logger |
LOG |
(package private) static String |
NOBODY |
private static byte[] |
ROW_A |
private static byte[] |
ROW_AB |
private static byte[] |
ROW_B |
private static byte[] |
ROW_BC |
private static byte[] |
ROW_C |
private static byte[] |
TEST_FAMILY |
private static org.apache.hadoop.hbase.TableName |
TEST_TABLE |
private static HBaseTestingUtility |
util |
(package private) static String |
WHOAREYOU |
| Constructor and Description |
|---|
TestServerCustomProtocol() |
| Modifier and Type | Method and Description |
|---|---|
void |
after() |
void |
before() |
private Map<byte[],String> |
compoundOfHelloAndPing(org.apache.hadoop.hbase.client.Table table,
byte[] start,
byte[] end) |
private static String |
doPing(org.apache.hadoop.hbase.coprocessor.protobuf.generated.PingProtos.PingService instance) |
private Map<byte[],String> |
hello(org.apache.hadoop.hbase.client.Table table,
String send) |
private Map<byte[],String> |
hello(org.apache.hadoop.hbase.client.Table table,
String send,
byte[] start,
byte[] end) |
private Map<byte[],String> |
hello(org.apache.hadoop.hbase.client.Table table,
String send,
String response) |
private Map<byte[],String> |
noop(org.apache.hadoop.hbase.client.Table table,
byte[] start,
byte[] end) |
private Map<byte[],String> |
ping(org.apache.hadoop.hbase.client.Table table,
byte[] start,
byte[] end) |
static void |
setupBeforeClass() |
static void |
tearDownAfterClass() |
void |
testCompoundCall() |
void |
testEmptyReturnType() |
void |
testNullCall() |
void |
testNullReturn() |
void |
testRowRange() |
void |
testSingleMethod() |
void |
testSingleProxy() |
private void |
verifyRegionResults(org.apache.hadoop.hbase.client.RegionLocator table,
Map<byte[],String> results,
byte[] row) |
private void |
verifyRegionResults(org.apache.hadoop.hbase.client.RegionLocator regionLocator,
Map<byte[],String> results,
String expected,
byte[] row) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.slf4j.Logger LOG
static final String WHOAREYOU
static final String NOBODY
static final String HELLO
private static final org.apache.hadoop.hbase.TableName TEST_TABLE
private static final byte[] TEST_FAMILY
private static final byte[] ROW_A
private static final byte[] ROW_B
private static final byte[] ROW_C
private static final byte[] ROW_AB
private static final byte[] ROW_BC
private static HBaseTestingUtility util
public TestServerCustomProtocol()
public static void setupBeforeClass() throws Exception
Exceptionpublic static void tearDownAfterClass() throws Exception
Exceptionpublic void testSingleProxy() throws Throwable
Throwableprivate Map<byte[],String> hello(org.apache.hadoop.hbase.client.Table table, String send, String response) throws com.google.protobuf.ServiceException, Throwable
com.google.protobuf.ServiceExceptionThrowableprivate Map<byte[],String> hello(org.apache.hadoop.hbase.client.Table table, String send) throws com.google.protobuf.ServiceException, Throwable
com.google.protobuf.ServiceExceptionThrowableprivate Map<byte[],String> hello(org.apache.hadoop.hbase.client.Table table, String send, byte[] start, byte[] end) throws com.google.protobuf.ServiceException, Throwable
com.google.protobuf.ServiceExceptionThrowableprivate Map<byte[],String> compoundOfHelloAndPing(org.apache.hadoop.hbase.client.Table table, byte[] start, byte[] end) throws com.google.protobuf.ServiceException, Throwable
com.google.protobuf.ServiceExceptionThrowableprivate Map<byte[],String> noop(org.apache.hadoop.hbase.client.Table table, byte[] start, byte[] end) throws com.google.protobuf.ServiceException, Throwable
com.google.protobuf.ServiceExceptionThrowablepublic void testSingleMethod() throws Throwable
Throwablepublic void testRowRange() throws Throwable
Throwableprivate Map<byte[],String> ping(org.apache.hadoop.hbase.client.Table table, byte[] start, byte[] end) throws com.google.protobuf.ServiceException, Throwable
com.google.protobuf.ServiceExceptionThrowableprivate static String doPing(org.apache.hadoop.hbase.coprocessor.protobuf.generated.PingProtos.PingService instance) throws IOException
IOExceptionpublic void testCompoundCall() throws Throwable
Throwablepublic void testNullCall() throws Throwable
Throwablepublic void testNullReturn() throws Throwable
Throwablepublic void testEmptyReturnType() throws Throwable
Throwableprivate void verifyRegionResults(org.apache.hadoop.hbase.client.RegionLocator table, Map<byte[],String> results, byte[] row) throws Exception
ExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.