Package org.apache.drill.exec.rpc.data
Class DataClientConnection
java.lang.Object
org.apache.drill.exec.rpc.AbstractRemoteConnection
org.apache.drill.exec.rpc.AbstractClientConnection
org.apache.drill.exec.rpc.data.DataClientConnection
- All Implemented Interfaces:
AutoCloseable,ClientConnection,ConnectionThrottle,EncryptionContext,RemoteConnection
-
Field Summary
Fields inherited from class org.apache.drill.exec.rpc.AbstractRemoteConnection
saslCodec -
Constructor Summary
ConstructorsConstructorDescriptionDataClientConnection(io.netty.channel.socket.SocketChannel channel, DataClient client, EncryptionContext encryptionContextImpl) -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanprotected org.slf4j.LoggerinthashCode()void<SEND extends com.google.protobuf.MessageLite,RECEIVE extends com.google.protobuf.MessageLite>
voidsend(RpcOutcomeListener<RECEIVE> outcomeListener, BitData.RpcType rpcType, SEND protobufBody, Class<RECEIVE> clazz, io.netty.buffer.ByteBuf... dataBodies) Methods inherited from class org.apache.drill.exec.rpc.AbstractClientConnection
channelClosed, disposeSaslClient, getSaslClient, setSaslClientMethods inherited from class org.apache.drill.exec.rpc.AbstractRemoteConnection
addSecurityHandlers, blockOnNotWritable, close, createNewRpcListener, getAndRemoveRpcOutcome, getChannel, getEncryptionCtxtString, getMaxWrappedSize, getName, getRemoteAddress, getWrapSizeLimit, inEventLoop, isActive, isEncryptionEnabled, recordRemoteFailure, setAutoRead, setEncryption, setMaxWrappedSize, setWrapSizeLimitMethods inherited from class java.lang.Object
clone, finalize, getClass, 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, getAndRemoveRpcOutcome, getChannel, getName, getRemoteAddress, inEventLoop, isActive, recordRemoteFailure
-
Constructor Details
-
DataClientConnection
public DataClientConnection(io.netty.channel.socket.SocketChannel channel, DataClient client, EncryptionContext encryptionContextImpl)
-
-
Method Details
-
getAllocator
-
send
public <SEND extends com.google.protobuf.MessageLite,RECEIVE extends com.google.protobuf.MessageLite> void send(RpcOutcomeListener<RECEIVE> outcomeListener, BitData.RpcType rpcType, SEND protobufBody, Class<RECEIVE> clazz, io.netty.buffer.ByteBuf... dataBodies) -
hashCode
public int hashCode() -
equals
-
getLogger
protected org.slf4j.Logger getLogger()- Specified by:
getLoggerin classAbstractClientConnection
-
incConnectionCounter
public void incConnectionCounter()- Specified by:
incConnectionCounterin classAbstractRemoteConnection
-
decConnectionCounter
public void decConnectionCounter()- Specified by:
decConnectionCounterin classAbstractRemoteConnection
-