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) |
com.google.protobuf.MessageLite |
getResponseDefaultInstance(int rpcType) |
protected void |
handle(DataClientConnection connection,
int rpcType,
io.netty.buffer.ByteBuf pBody,
io.netty.buffer.ByteBuf dBody,
ResponseSender sender) |
protected DataClientConnection |
initRemoteConnection(io.netty.channel.socket.SocketChannel channel) |
protected void |
prepareSaslHandshake(RpcConnectionHandler<DataClientConnection> connectionHandler,
List<String> serverAuthMechanisms)
Creates various instances needed to start the SASL handshake.
|
protected List<String> |
validateHandshake(BitData.BitServerHandshake handshake) |
close, connectAsClient, finalizeConnection, isActive, isAuthComplete, isSslEnabled, send, send, send, setAuthComplete, setAutoRead, setSslChannel, setupSSL, startSaslHandshakepublic 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, io.netty.buffer.ByteBuf pBody, io.netty.buffer.ByteBuf dBody, ResponseSender sender) throws RpcException
handle in class RpcBus<BitData.RpcType,DataClientConnection>RpcExceptionprotected void prepareSaslHandshake(RpcConnectionHandler<DataClientConnection> connectionHandler, List<String> serverAuthMechanisms)
BasicClientBasicClient.validateHandshake(MessageLite) if authentication is required from server side.prepareSaslHandshake in class BasicClient<BitData.RpcType,DataClientConnection,BitData.BitClientHandshake,BitData.BitServerHandshake>connectionHandler - - Connection handler used by client's to know about success/failure conditions.serverAuthMechanisms - - List of auth mechanisms configured on server sideprotected List<String> validateHandshake(BitData.BitServerHandshake handshake) throws RpcException
validateHandshake in class BasicClient<BitData.RpcType,DataClientConnection,BitData.BitClientHandshake,BitData.BitServerHandshake>RpcExceptionpublic ProtobufLengthDecoder getDecoder(BufferAllocator allocator)
getDecoder in class BasicClient<BitData.RpcType,DataClientConnection,BitData.BitClientHandshake,BitData.BitServerHandshake>Copyright © 2021 The Apache Software Foundation. All rights reserved.