Package org.apache.drill.exec.rpc.data
Class DataServer
java.lang.Object
org.apache.drill.exec.rpc.RpcBus<BitData.RpcType,DataServerConnection>
org.apache.drill.exec.rpc.BasicServer<BitData.RpcType,DataServerConnection>
org.apache.drill.exec.rpc.data.DataServer
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.drill.exec.rpc.BasicServer
BasicServer.ServerHandshakeHandler<T extends com.google.protobuf.MessageLite>Nested classes/interfaces inherited from class org.apache.drill.exec.rpc.RpcBus
RpcBus.ChannelClosedHandler, RpcBus.InboundHandler -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected io.netty.util.concurrent.GenericFutureListener<io.netty.channel.ChannelFuture> getCloseHandler(io.netty.channel.socket.SocketChannel ch, DataServerConnection connection) protected ProtobufLengthDecodergetDecoder(BufferAllocator allocator, OutOfMemoryHandler outOfMemoryHandler) getHandshakeHandler(DataServerConnection connection) protected OutOfMemoryHandlercom.google.protobuf.MessageLitegetResponseDefaultInstance(int rpcType) protected DataServerConnectioninitRemoteConnection(io.netty.channel.socket.SocketChannel channel) Methods inherited from class org.apache.drill.exec.rpc.BasicServer
bind, close, closeSSL, handle, isSslEnabled, setSslChannel, setupSSL
-
Constructor Details
-
DataServer
public DataServer(org.apache.drill.exec.rpc.data.DataConnectionConfig config)
-
-
Method Details
-
getResponseDefaultInstance
- Specified by:
getResponseDefaultInstancein classBasicServer<BitData.RpcType,DataServerConnection> - Throws:
RpcException
-
getCloseHandler
protected io.netty.util.concurrent.GenericFutureListener<io.netty.channel.ChannelFuture> getCloseHandler(io.netty.channel.socket.SocketChannel ch, DataServerConnection connection) - Overrides:
getCloseHandlerin classRpcBus<BitData.RpcType,DataServerConnection>
-
initRemoteConnection
- Overrides:
initRemoteConnectionin classBasicServer<BitData.RpcType,DataServerConnection>
-
getHandshakeHandler
protected BasicServer.ServerHandshakeHandler<BitData.BitClientHandshake> getHandshakeHandler(DataServerConnection connection) - Specified by:
getHandshakeHandlerin classBasicServer<BitData.RpcType,DataServerConnection>
-
getOutOfMemoryHandler
- Overrides:
getOutOfMemoryHandlerin classBasicServer<BitData.RpcType,DataServerConnection>
-
getDecoder
protected ProtobufLengthDecoder getDecoder(BufferAllocator allocator, OutOfMemoryHandler outOfMemoryHandler) - Specified by:
getDecoderin classBasicServer<BitData.RpcType,DataServerConnection>
-