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
ConstructorsConstructorDescriptionServerHandshakeHandler(com.google.protobuf.Internal.EnumLite handshakeType, com.google.protobuf.Parser<T> parser) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconsumeHandshake(io.netty.channel.ChannelHandlerContext ctx, T inbound) abstract com.google.protobuf.MessageLitegetHandshakeResponse(T inbound) Methods inherited from class org.apache.drill.exec.rpc.AbstractHandshakeHandler
decodeMethods inherited from class io.netty.handler.codec.MessageToMessageDecoder
acceptInboundMessage, channelRead, channelReadCompleteMethods inherited from class io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelRegistered, channelUnregistered, channelWritabilityChanged, exceptionCaught, userEventTriggeredMethods inherited from class io.netty.channel.ChannelHandlerAdapter
ensureNotSharable, handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
consumeHandshakein classAbstractHandshakeHandler<T extends com.google.protobuf.MessageLite>- Throws:
Exception
-
getHandshakeResponse
- Throws:
Exception
-