public class UserClient extends BasicClientWithConnection<UserProtos.RpcType,UserProtos.UserToBitHandshake,UserProtos.BitToUserHandshake>
BasicClientWithConnection.ServerConnection
RpcBus.ChannelClosedHandler, RpcBus.InboundHandler
connection
Constructor and Description |
---|
UserClient(DrillConfig config,
boolean supportComplexTypes,
BufferAllocator alloc,
io.netty.channel.EventLoopGroup eventLoopGroup,
Executor eventExecutor) |
Modifier and Type | Method and Description |
---|---|
void |
connect(RpcConnectionHandler<BasicClientWithConnection.ServerConnection> handler,
CoordinationProtos.DrillbitEndpoint endpoint,
UserProtos.UserProperties props,
UserBitShared.UserCredentials credentials) |
protected void |
finalizeConnection(UserProtos.BitToUserHandshake handshake,
BasicClientWithConnection.ServerConnection connection) |
ProtobufLengthDecoder |
getDecoder(BufferAllocator allocator) |
protected com.google.protobuf.MessageLite |
getResponseDefaultInstance(int rpcType) |
protected Response |
handleReponse(ConnectionThrottle throttle,
int rpcType,
ByteBuf pBody,
ByteBuf dBody) |
void |
submitQuery(UserResultsListener resultsListener,
UserProtos.RunQuery query) |
protected void |
validateHandshake(UserProtos.BitToUserHandshake inbound) |
handle, initRemoteConnection
close, connectAsClient, isActive, isClient, send, send, setAutoRead
get, getCloseHandler, handle, send, send, setAddresses
public UserClient(DrillConfig config, boolean supportComplexTypes, BufferAllocator alloc, io.netty.channel.EventLoopGroup eventLoopGroup, Executor eventExecutor)
public void submitQuery(UserResultsListener resultsListener, UserProtos.RunQuery query)
public void connect(RpcConnectionHandler<BasicClientWithConnection.ServerConnection> handler, CoordinationProtos.DrillbitEndpoint endpoint, UserProtos.UserProperties props, UserBitShared.UserCredentials credentials)
protected com.google.protobuf.MessageLite getResponseDefaultInstance(int rpcType) throws RpcException
getResponseDefaultInstance
in class RpcBus<UserProtos.RpcType,BasicClientWithConnection.ServerConnection>
RpcException
protected Response handleReponse(ConnectionThrottle throttle, int rpcType, ByteBuf pBody, ByteBuf dBody) throws RpcException
handleReponse
in class BasicClientWithConnection<UserProtos.RpcType,UserProtos.UserToBitHandshake,UserProtos.BitToUserHandshake>
RpcException
protected void validateHandshake(UserProtos.BitToUserHandshake inbound) throws RpcException
protected void finalizeConnection(UserProtos.BitToUserHandshake handshake, BasicClientWithConnection.ServerConnection connection)
public ProtobufLengthDecoder getDecoder(BufferAllocator allocator)
Copyright © 2016 The Apache Software Foundation. All rights reserved.