Package org.apache.drill.exec.rpc
Class AbstractClientConnection
java.lang.Object
org.apache.drill.exec.rpc.AbstractRemoteConnection
org.apache.drill.exec.rpc.AbstractClientConnection
- All Implemented Interfaces:
AutoCloseable
,ClientConnection
,ConnectionThrottle
,EncryptionContext
,RemoteConnection
- Direct Known Subclasses:
DataClientConnection
,UserClient.UserToBitConnection
public abstract class AbstractClientConnection
extends AbstractRemoteConnection
implements ClientConnection
-
Field Summary
Fields inherited from class org.apache.drill.exec.rpc.AbstractRemoteConnection
saslCodec
-
Constructor Summary
ConstructorDescriptionAbstractClientConnection
(io.netty.channel.socket.SocketChannel channel, String name) AbstractClientConnection
(io.netty.channel.socket.SocketChannel channel, String name, EncryptionContext encryptContext) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Called from the RpcBus's channel close handler to close all remaining resources associated with this connection.void
protected abstract org.slf4j.Logger
void
setSaslClient
(SaslClient saslClient) Methods inherited from class org.apache.drill.exec.rpc.AbstractRemoteConnection
addSecurityHandlers, blockOnNotWritable, close, createNewRpcListener, decConnectionCounter, getAndRemoveRpcOutcome, getChannel, getEncryptionCtxtString, getMaxWrappedSize, getName, getRemoteAddress, getWrapSizeLimit, incConnectionCounter, inEventLoop, isActive, isEncryptionEnabled, recordRemoteFailure, setAutoRead, setEncryption, setMaxWrappedSize, setWrapSizeLimit
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.drill.exec.rpc.ConnectionThrottle
setAutoRead
Methods inherited from interface org.apache.drill.exec.rpc.EncryptionContext
getEncryptionCtxtString, getMaxWrappedSize, getWrapSizeLimit, isEncryptionEnabled, setEncryption, setMaxWrappedSize, setWrapSizeLimit
Methods inherited from interface org.apache.drill.exec.rpc.RemoteConnection
addSecurityHandlers, blockOnNotWritable, close, createNewRpcListener, getAllocator, getAndRemoveRpcOutcome, getChannel, getName, getRemoteAddress, inEventLoop, isActive, recordRemoteFailure
-
Constructor Details
-
AbstractClientConnection
public AbstractClientConnection(io.netty.channel.socket.SocketChannel channel, String name, EncryptionContext encryptContext) -
AbstractClientConnection
-
-
Method Details
-
getLogger
protected abstract org.slf4j.Logger getLogger() -
setSaslClient
- Specified by:
setSaslClient
in interfaceClientConnection
-
getSaslClient
- Specified by:
getSaslClient
in interfaceClientConnection
-
disposeSaslClient
public void disposeSaslClient()- Specified by:
disposeSaslClient
in interfaceClientConnection
-
channelClosed
Description copied from class:AbstractRemoteConnection
Called from the RpcBus's channel close handler to close all remaining resources associated with this connection. Ensures that any pending back-pressure items are also unblocked so they can be thrown away.- Specified by:
channelClosed
in interfaceRemoteConnection
- Overrides:
channelClosed
in classAbstractRemoteConnection
- Parameters:
ex
- The exception that caused the channel to close.
-