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
Exception
public static void tearDownAfterClass() throws Exception
Exception
public void testSingleProxy() throws Throwable
Throwable
private Map<byte[],String> hello(org.apache.hadoop.hbase.client.Table table, String send, String response) throws com.google.protobuf.ServiceException, Throwable
com.google.protobuf.ServiceException
Throwable
private Map<byte[],String> hello(org.apache.hadoop.hbase.client.Table table, String send) throws com.google.protobuf.ServiceException, Throwable
com.google.protobuf.ServiceException
Throwable
private 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.ServiceException
Throwable
private Map<byte[],String> compoundOfHelloAndPing(org.apache.hadoop.hbase.client.Table table, byte[] start, byte[] end) throws com.google.protobuf.ServiceException, Throwable
com.google.protobuf.ServiceException
Throwable
private Map<byte[],String> noop(org.apache.hadoop.hbase.client.Table table, byte[] start, byte[] end) throws com.google.protobuf.ServiceException, Throwable
com.google.protobuf.ServiceException
Throwable
public void testSingleMethod() throws Throwable
Throwable
public void testRowRange() throws Throwable
Throwable
private Map<byte[],String> ping(org.apache.hadoop.hbase.client.Table table, byte[] start, byte[] end) throws com.google.protobuf.ServiceException, Throwable
com.google.protobuf.ServiceException
Throwable
private static String doPing(org.apache.hadoop.hbase.coprocessor.protobuf.generated.PingProtos.PingService instance) throws IOException
IOException
public void testCompoundCall() throws Throwable
Throwable
public void testNullCall() throws Throwable
Throwable
public void testNullReturn() throws Throwable
Throwable
public void testEmptyReturnType() throws Throwable
Throwable
private void verifyRegionResults(org.apache.hadoop.hbase.client.RegionLocator table, Map<byte[],String> results, byte[] row) throws Exception
Exception
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.