Package org.apache.hadoop.hbase.ipc
Class TestRpcClientLeaks.MyRpcClientImpl
java.lang.Object
org.apache.hadoop.hbase.ipc.AbstractRpcClient<org.apache.hadoop.hbase.ipc.BlockingRpcConnection>
org.apache.hadoop.hbase.ipc.BlockingRpcClient
org.apache.hadoop.hbase.ipc.TestRpcClientLeaks.MyRpcClientImpl
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.hadoop.hbase.ipc.RpcClient
- Enclosing class:
- TestRpcClientLeaks
public static class TestRpcClientLeaks.MyRpcClientImpl
extends org.apache.hadoop.hbase.ipc.BlockingRpcClient
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.ipc.AbstractRpcClient
org.apache.hadoop.hbase.ipc.AbstractRpcClient.BlockingRpcChannelImplementation, org.apache.hadoop.hbase.ipc.AbstractRpcClient.RpcChannelImplementation -
Field Summary
FieldsFields inherited from class org.apache.hadoop.hbase.ipc.BlockingRpcClient
socketFactoryFields inherited from class org.apache.hadoop.hbase.ipc.AbstractRpcClient
cellBlockBuilder, clusterId, codec, compressor, conf, connectionAttributes, connectTO, failedServers, failureSleep, fallbackAllowed, localAddr, LOG, maxRetries, metrics, minIdleTimeBeforeClose, readTO, tcpKeepAlive, tcpNoDelay, userProvider, WHEEL_TIMER, writeTOFields inherited from interface org.apache.hadoop.hbase.ipc.RpcClient
DEFAULT_CODEC_CLASS, DEFAULT_SOCKET_TIMEOUT_CONNECT, DEFAULT_SOCKET_TIMEOUT_READ, DEFAULT_SOCKET_TIMEOUT_WRITE, FAILED_SERVER_EXPIRY_DEFAULT, FAILED_SERVER_EXPIRY_KEY, IDLE_TIME, IPC_CLIENT_FALLBACK_TO_SIMPLE_AUTH_ALLOWED_DEFAULT, IPC_CLIENT_FALLBACK_TO_SIMPLE_AUTH_ALLOWED_KEY, PING_CALL_ID, REGISTRY_PREAMBLE_HEADER, SECURITY_PREAMBLE_HEADER, SOCKET_TIMEOUT_CONNECT, SOCKET_TIMEOUT_READ, SOCKET_TIMEOUT_WRITE, SPECIFIC_WRITE_THREAD -
Constructor Summary
ConstructorsConstructorDescriptionMyRpcClientImpl(org.apache.hadoop.conf.Configuration conf) MyRpcClientImpl(org.apache.hadoop.conf.Configuration conf, String clusterId, SocketAddress address, org.apache.hadoop.hbase.client.MetricsConnection metrics, Map<String, byte[]> connectionAttributes) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.hadoop.hbase.ipc.BlockingRpcConnectioncreateConnection(org.apache.hadoop.hbase.ipc.ConnectionId remoteId) static voidMethods inherited from class org.apache.hadoop.hbase.ipc.BlockingRpcClient
closeInternalMethods inherited from class org.apache.hadoop.hbase.ipc.AbstractRpcClient
cancelConnections, close, configureHBaseRpcController, createAddr, createBlockingRpcChannel, createRpcChannel, getCodec, getConnections, getDefaultCodec, hasCellBlockSupport, isTcpNoDelay
-
Field Details
-
throwException
-
-
Constructor Details
-
MyRpcClientImpl
-
MyRpcClientImpl
public MyRpcClientImpl(org.apache.hadoop.conf.Configuration conf, String clusterId, SocketAddress address, org.apache.hadoop.hbase.client.MetricsConnection metrics, Map<String, byte[]> connectionAttributes)
-
-
Method Details
-
createConnection
protected org.apache.hadoop.hbase.ipc.BlockingRpcConnection createConnection(org.apache.hadoop.hbase.ipc.ConnectionId remoteId) throws IOException - Overrides:
createConnectionin classorg.apache.hadoop.hbase.ipc.BlockingRpcClient- Throws:
IOException
-
enableThrowExceptions
-