public class DataClient extends BasicClient<BitData.RpcType,DataClientConnection,BitData.BitClientHandshake,BitData.BitServerHandshake>
RpcBus.ChannelClosedHandler, RpcBus.InboundHandler| Constructor and Description |
|---|
DataClient(CoordinationProtos.DrillbitEndpoint remoteEndpoint,
org.apache.drill.exec.rpc.data.DataConnectionConfig config,
ReconnectingConnection.CloseHandlerCreator closeHandlerFactory) |
| Modifier and Type | Method and Description |
|---|---|
protected io.netty.util.concurrent.GenericFutureListener<io.netty.channel.ChannelFuture> |
getCloseHandler(io.netty.channel.socket.SocketChannel ch,
DataClientConnection clientConnection) |
ProtobufLengthDecoder |
getDecoder(BufferAllocator allocator) |
protected <M extends com.google.protobuf.MessageLite> |
getInitialCommand(RpcCommand<M,DataClientConnection> command) |
com.google.protobuf.MessageLite |
getResponseDefaultInstance(int rpcType) |
protected void |
handle(DataClientConnection connection,
int rpcType,
ByteBuf pBody,
ByteBuf dBody,
ResponseSender sender) |
protected DataClientConnection |
initRemoteConnection(io.netty.channel.socket.SocketChannel channel) |
protected void |
validateHandshake(BitData.BitServerHandshake handshake) |
close, connectAsClient, finalizeConnection, isActive, isSslEnabled, send, send, send, setAutoRead, setSslChannel, setupSSLpublic DataClient(CoordinationProtos.DrillbitEndpoint remoteEndpoint, org.apache.drill.exec.rpc.data.DataConnectionConfig config, ReconnectingConnection.CloseHandlerCreator closeHandlerFactory)
protected DataClientConnection initRemoteConnection(io.netty.channel.socket.SocketChannel channel)
protected io.netty.util.concurrent.GenericFutureListener<io.netty.channel.ChannelFuture> getCloseHandler(io.netty.channel.socket.SocketChannel ch,
DataClientConnection clientConnection)
getCloseHandler in class RpcBus<BitData.RpcType,DataClientConnection>public com.google.protobuf.MessageLite getResponseDefaultInstance(int rpcType)
throws RpcException
getResponseDefaultInstance in class RpcBus<BitData.RpcType,DataClientConnection>RpcExceptionprotected void handle(DataClientConnection connection, int rpcType, ByteBuf pBody, ByteBuf dBody, ResponseSender sender) throws RpcException
handle in class RpcBus<BitData.RpcType,DataClientConnection>RpcExceptionprotected void validateHandshake(BitData.BitServerHandshake handshake) throws RpcException
validateHandshake in class BasicClient<BitData.RpcType,DataClientConnection,BitData.BitClientHandshake,BitData.BitServerHandshake>RpcExceptionprotected <M extends com.google.protobuf.MessageLite> RpcCommand<M,DataClientConnection> getInitialCommand(RpcCommand<M,DataClientConnection> command)
public ProtobufLengthDecoder getDecoder(BufferAllocator allocator)
getDecoder in class BasicClient<BitData.RpcType,DataClientConnection,BitData.BitClientHandshake,BitData.BitServerHandshake>Copyright © 2017 The Apache Software Foundation. All rights reserved.