Package org.apache.drill.exec.rpc.data
Class DataServer
java.lang.Object
org.apache.drill.exec.rpc.RpcBus<T,SC>
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected io.netty.util.concurrent.GenericFutureListener<io.netty.channel.ChannelFuture>
getCloseHandler
(io.netty.channel.socket.SocketChannel ch, DataServerConnection connection) protected ProtobufLengthDecoder
getDecoder
(BufferAllocator allocator, OutOfMemoryHandler outOfMemoryHandler) getHandshakeHandler
(DataServerConnection connection) protected OutOfMemoryHandler
com.google.protobuf.MessageLite
getResponseDefaultInstance
(int rpcType) protected DataServerConnection
initRemoteConnection
(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:
getResponseDefaultInstance
in 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:
getCloseHandler
in classRpcBus<BitData.RpcType,
DataServerConnection>
-
initRemoteConnection
- Overrides:
initRemoteConnection
in classBasicServer<BitData.RpcType,
DataServerConnection>
-
getHandshakeHandler
protected BasicServer.ServerHandshakeHandler<BitData.BitClientHandshake> getHandshakeHandler(DataServerConnection connection) - Specified by:
getHandshakeHandler
in classBasicServer<BitData.RpcType,
DataServerConnection>
-
getOutOfMemoryHandler
- Overrides:
getOutOfMemoryHandler
in classBasicServer<BitData.RpcType,
DataServerConnection>
-
getDecoder
protected ProtobufLengthDecoder getDecoder(BufferAllocator allocator, OutOfMemoryHandler outOfMemoryHandler) - Specified by:
getDecoder
in classBasicServer<BitData.RpcType,
DataServerConnection>
-