public class UserServer extends BasicServer<UserProtos.RpcType,UserServer.BitToUserConnection>
| Modifier and Type | Class and Description |
|---|---|
class |
UserServer.BitToUserConnection
Represents a client connection accepted by Foreman Drillbit's UserServer
from a DrillClient.
|
class |
UserServer.BitToUserConnectionConfig
User Connection's config for System Table access
|
BasicServer.ServerHandshakeHandler<T extends com.google.protobuf.MessageLite>RpcBus.ChannelClosedHandler, RpcBus.InboundHandler| Constructor and Description |
|---|
UserServer(BootStrapContext context,
BufferAllocator allocator,
io.netty.channel.EventLoopGroup eventLoopGroup,
UserWorker worker) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
closeSSL() |
protected ProtobufLengthDecoder |
getDecoder(BufferAllocator allocator,
OutOfMemoryHandler outOfMemoryHandler) |
protected BasicServer.ServerHandshakeHandler<UserProtos.UserToBitHandshake> |
getHandshakeHandler(UserServer.BitToUserConnection connection) |
protected com.google.protobuf.MessageLite |
getResponseDefaultInstance(int rpcType) |
static Set<Map.Entry<UserServer.BitToUserConnection,UserServer.BitToUserConnectionConfig>> |
getUserConnections()
Access to set of active connection details for this instance of the Drillbit
|
protected UserServer.BitToUserConnection |
initRemoteConnection(io.netty.channel.socket.SocketChannel channel) |
protected boolean |
isSslEnabled() |
void |
setSslChannel(io.netty.channel.Channel c) |
protected void |
setupSSL(io.netty.channel.ChannelPipeline pipe) |
bind, close, getOutOfMemoryHandler, handleget, getCloseHandler, send, send, send, setAddressespublic UserServer(BootStrapContext context, BufferAllocator allocator, io.netty.channel.EventLoopGroup eventLoopGroup, UserWorker worker) throws DrillbitStartupException
DrillbitStartupExceptionprotected void setupSSL(io.netty.channel.ChannelPipeline pipe)
setupSSL in class BasicServer<UserProtos.RpcType,UserServer.BitToUserConnection>protected boolean isSslEnabled()
isSslEnabled in class BasicServer<UserProtos.RpcType,UserServer.BitToUserConnection>public void setSslChannel(io.netty.channel.Channel c)
setSslChannel in class BasicServer<UserProtos.RpcType,UserServer.BitToUserConnection>protected void closeSSL()
closeSSL in class BasicServer<UserProtos.RpcType,UserServer.BitToUserConnection>protected com.google.protobuf.MessageLite getResponseDefaultInstance(int rpcType)
throws RpcException
getResponseDefaultInstance in class BasicServer<UserProtos.RpcType,UserServer.BitToUserConnection>RpcExceptionpublic static Set<Map.Entry<UserServer.BitToUserConnection,UserServer.BitToUserConnectionConfig>> getUserConnections()
protected UserServer.BitToUserConnection initRemoteConnection(io.netty.channel.socket.SocketChannel channel)
initRemoteConnection in class BasicServer<UserProtos.RpcType,UserServer.BitToUserConnection>protected BasicServer.ServerHandshakeHandler<UserProtos.UserToBitHandshake> getHandshakeHandler(UserServer.BitToUserConnection connection)
getHandshakeHandler in class BasicServer<UserProtos.RpcType,UserServer.BitToUserConnection>protected ProtobufLengthDecoder getDecoder(BufferAllocator allocator, OutOfMemoryHandler outOfMemoryHandler)
getDecoder in class BasicServer<UserProtos.RpcType,UserServer.BitToUserConnection>Copyright © 2021 The Apache Software Foundation. All rights reserved.