Package org.apache.hadoop.hbase.ipc
Class NettyRpcClient
java.lang.Object
org.apache.hadoop.hbase.ipc.AbstractRpcClient<NettyRpcConnection>
org.apache.hadoop.hbase.ipc.NettyRpcClient
- All Implemented Interfaces:
Closeable,AutoCloseable,RpcClient
@LimitedPrivate("Configuration")
public class NettyRpcClient
extends AbstractRpcClient<NettyRpcConnection>
Netty client for the requests and responses.
- Since:
- 2.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.ipc.AbstractRpcClient
AbstractRpcClient.BlockingRpcChannelImplementation, AbstractRpcClient.RpcChannelImplementation -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final Class<? extends org.apache.hbase.thirdparty.io.netty.channel.Channel>(package private) final org.apache.hbase.thirdparty.io.netty.channel.EventLoopGroupprivate final AtomicReference<FileChangeWatcher>private final booleanprivate final AtomicReference<org.apache.hbase.thirdparty.io.netty.handler.ssl.SslContext>private final AtomicReference<FileChangeWatcher>Fields 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
ConstructorsConstructorDescriptionNettyRpcClient(org.apache.hadoop.conf.Configuration configuration) Used in test only.NettyRpcClient(org.apache.hadoop.conf.Configuration configuration, String clusterId, SocketAddress localAddress, MetricsConnection metrics) NettyRpcClient(org.apache.hadoop.conf.Configuration configuration, String clusterId, SocketAddress localAddress, MetricsConnection metrics, Map<String, byte[]> connectionAttributes) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected NettyRpcConnectioncreateConnection(ConnectionId remoteId) Not connected.(package private) org.apache.hbase.thirdparty.io.netty.handler.ssl.SslContextMethods inherited from class org.apache.hadoop.hbase.ipc.AbstractRpcClient
cancelConnections, close, configureHBaseRpcController, createAddr, createBlockingRpcChannel, createRpcChannel, getCodec, getConnections, getDefaultCodec, hasCellBlockSupport, isTcpNoDelay
-
Field Details
-
group
-
channelClass
-
shutdownGroupWhenClose
-
sslContextForClient
private final AtomicReference<org.apache.hbase.thirdparty.io.netty.handler.ssl.SslContext> sslContextForClient -
keyStoreWatcher
-
trustStoreWatcher
-
-
Constructor Details
-
NettyRpcClient
public NettyRpcClient(org.apache.hadoop.conf.Configuration configuration, String clusterId, SocketAddress localAddress, MetricsConnection metrics) -
NettyRpcClient
public NettyRpcClient(org.apache.hadoop.conf.Configuration configuration, String clusterId, SocketAddress localAddress, MetricsConnection metrics, Map<String, byte[]> connectionAttributes) -
NettyRpcClient
Used in test only.
-
-
Method Details
-
createConnection
Description copied from class:AbstractRpcClientNot connected.- Specified by:
createConnectionin classAbstractRpcClient<NettyRpcConnection>- Throws:
IOException
-
closeInternal
- Specified by:
closeInternalin classAbstractRpcClient<NettyRpcConnection>
-
getSslContext
org.apache.hbase.thirdparty.io.netty.handler.ssl.SslContext getSslContext() throws X509Exception, IOException- Throws:
X509ExceptionIOException
-