public abstract class AbstractTestIPC extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.hadoop.conf.Configuration |
CONF |
| Constructor and Description |
|---|
AbstractTestIPC() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract AbstractRpcClient<?> |
createRpcClient(org.apache.hadoop.conf.Configuration conf) |
protected abstract AbstractRpcClient<?> |
createRpcClientNoCodec(org.apache.hadoop.conf.Configuration conf) |
protected abstract AbstractRpcClient<?> |
createRpcClientRTEDuringConnectionSetup(org.apache.hadoop.conf.Configuration conf) |
protected abstract RpcServer |
createRpcServer(Server server,
String name,
List<RpcServer.BlockingServiceAndInterface> services,
InetSocketAddress bindAddress,
org.apache.hadoop.conf.Configuration conf,
RpcScheduler scheduler) |
protected abstract RpcServer |
createTestFailingRpcServer(Server server,
String name,
List<RpcServer.BlockingServiceAndInterface> services,
InetSocketAddress bindAddress,
org.apache.hadoop.conf.Configuration conf,
RpcScheduler scheduler) |
void |
testAsyncEcho() |
void |
testAsyncRemoteError() |
void |
testAsyncTimeout() |
void |
testCompressCellBlock()
It is hard to verify the compression is actually happening under the wraps.
|
void |
testConnectionCloseWithOutstandingRPCs()
Tests that the connection closing is handled by the client with outstanding RPC calls
|
void |
testNoCodec()
Ensure we do not HAVE TO HAVE a codec.
|
void |
testRemoteError() |
void |
testRpcMaxRequestSize()
Tests that the rpc scheduler is called when requests arrive.
|
void |
testRpcScheduler()
Tests that the rpc scheduler is called when requests arrive.
|
void |
testRpcServerForNotNullRemoteAddressInCallObject()
Tests that the RpcServer creates & dispatches CallRunner object to scheduler with non-null
remoteAddress set to its Call Object
|
void |
testRTEDuringConnectionSetup() |
void |
testTimeout() |
protected static final org.apache.hadoop.conf.Configuration CONF
public AbstractTestIPC()
protected abstract RpcServer createRpcServer(Server server, String name, List<RpcServer.BlockingServiceAndInterface> services, InetSocketAddress bindAddress, org.apache.hadoop.conf.Configuration conf, RpcScheduler scheduler) throws IOException
IOExceptionprotected abstract AbstractRpcClient<?> createRpcClientNoCodec(org.apache.hadoop.conf.Configuration conf)
public void testNoCodec() throws IOException, org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
IOExceptionorg.apache.hbase.thirdparty.com.google.protobuf.ServiceExceptionprotected abstract AbstractRpcClient<?> createRpcClient(org.apache.hadoop.conf.Configuration conf)
public void testCompressCellBlock() throws IOException, org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
IOExceptionorg.apache.hbase.thirdparty.com.google.protobuf.ServiceExceptionprotected abstract AbstractRpcClient<?> createRpcClientRTEDuringConnectionSetup(org.apache.hadoop.conf.Configuration conf) throws IOException
IOExceptionpublic void testRTEDuringConnectionSetup() throws Exception
Exceptionpublic void testRpcScheduler() throws IOException, org.apache.hbase.thirdparty.com.google.protobuf.ServiceException, InterruptedException
IOExceptionorg.apache.hbase.thirdparty.com.google.protobuf.ServiceExceptionInterruptedExceptionpublic void testRpcMaxRequestSize() throws IOException, org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
IOExceptionorg.apache.hbase.thirdparty.com.google.protobuf.ServiceExceptionpublic void testRpcServerForNotNullRemoteAddressInCallObject() throws IOException, org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
org.apache.hbase.thirdparty.com.google.protobuf.ServiceExceptionIOExceptionpublic void testRemoteError() throws IOException, org.apache.hbase.thirdparty.com.google.protobuf.ServiceException
IOExceptionorg.apache.hbase.thirdparty.com.google.protobuf.ServiceExceptionpublic void testTimeout() throws IOException
IOExceptionprotected abstract RpcServer createTestFailingRpcServer(Server server, String name, List<RpcServer.BlockingServiceAndInterface> services, InetSocketAddress bindAddress, org.apache.hadoop.conf.Configuration conf, RpcScheduler scheduler) throws IOException
IOExceptionpublic void testConnectionCloseWithOutstandingRPCs() throws InterruptedException, IOException
InterruptedExceptionIOExceptionpublic void testAsyncEcho() throws IOException
IOExceptionpublic void testAsyncRemoteError() throws IOException
IOExceptionpublic void testAsyncTimeout() throws IOException
IOExceptionCopyright © 2007–2019 Cloudera. All rights reserved.