Package org.apache.drill.exec.rpc
Class BasicServer.ServerHandshakeHandler<T extends com.google.protobuf.MessageLite>
java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
io.netty.handler.codec.MessageToMessageDecoder<InboundRpcMessage>
org.apache.drill.exec.rpc.AbstractHandshakeHandler<T>
org.apache.drill.exec.rpc.BasicServer.ServerHandshakeHandler<T>
- All Implemented Interfaces:
io.netty.channel.ChannelHandler
,io.netty.channel.ChannelInboundHandler
- Enclosing class:
- BasicServer<T extends com.google.protobuf.Internal.EnumLite,
SC extends ServerConnection<SC>>
protected abstract static class BasicServer.ServerHandshakeHandler<T extends com.google.protobuf.MessageLite>
extends AbstractHandshakeHandler<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler
io.netty.channel.ChannelHandler.Sharable
-
Field Summary
Fields inherited from class org.apache.drill.exec.rpc.AbstractHandshakeHandler
coordinationId, handshakeType, parser
-
Constructor Summary
ConstructorDescriptionServerHandshakeHandler
(com.google.protobuf.Internal.EnumLite handshakeType, com.google.protobuf.Parser<T> parser) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
consumeHandshake
(io.netty.channel.ChannelHandlerContext ctx, T inbound) abstract com.google.protobuf.MessageLite
getHandshakeResponse
(T inbound) Methods inherited from class org.apache.drill.exec.rpc.AbstractHandshakeHandler
decode
Methods inherited from class io.netty.handler.codec.MessageToMessageDecoder
acceptInboundMessage, channelRead
Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggered
Methods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Constructor Details
-
ServerHandshakeHandler
public ServerHandshakeHandler(com.google.protobuf.Internal.EnumLite handshakeType, com.google.protobuf.Parser<T> parser)
-
-
Method Details
-
consumeHandshake
protected void consumeHandshake(io.netty.channel.ChannelHandlerContext ctx, T inbound) throws Exception - Specified by:
consumeHandshake
in classAbstractHandshakeHandler<T extends com.google.protobuf.MessageLite>
- Throws:
Exception
-
getHandshakeResponse
- Throws:
Exception
-