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
ConstructorsConstructorDescriptionAbstractClientConnection(io.netty.channel.socket.SocketChannel channel, String name) AbstractClientConnection(io.netty.channel.socket.SocketChannel channel, String name, EncryptionContext encryptContext) -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled from the RpcBus's channel close handler to close all remaining resources associated with this connection.voidprotected abstract org.slf4j.LoggervoidsetSaslClient(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, setWrapSizeLimitMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.drill.exec.rpc.ConnectionThrottle
setAutoReadMethods inherited from interface org.apache.drill.exec.rpc.EncryptionContext
getEncryptionCtxtString, getMaxWrappedSize, getWrapSizeLimit, isEncryptionEnabled, setEncryption, setMaxWrappedSize, setWrapSizeLimitMethods 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:
setSaslClientin interfaceClientConnection
-
getSaslClient
- Specified by:
getSaslClientin interfaceClientConnection
-
disposeSaslClient
public void disposeSaslClient()- Specified by:
disposeSaslClientin interfaceClientConnection
-
channelClosed
Description copied from class:AbstractRemoteConnectionCalled 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:
channelClosedin interfaceRemoteConnection- Overrides:
channelClosedin classAbstractRemoteConnection- Parameters:
ex- The exception that caused the channel to close.
-