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