Package org.apache.hadoop.hbase.ipc
Class BufferCallBeforeInitHandler
java.lang.Object
org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerAdapter
org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandlerAdapter
org.apache.hbase.thirdparty.io.netty.channel.ChannelDuplexHandler
org.apache.hadoop.hbase.ipc.BufferCallBeforeInitHandler
- All Implemented Interfaces:
org.apache.hbase.thirdparty.io.netty.channel.ChannelHandler,org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandler,org.apache.hbase.thirdparty.io.netty.channel.ChannelOutboundHandler
@Private
class BufferCallBeforeInitHandler
extends org.apache.hbase.thirdparty.io.netty.channel.ChannelDuplexHandler
We will expose the connection to upper layer before initialized, so we need to buffer the calls
passed in and write them out once the connection is established.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static enumstatic final classNested classes/interfaces inherited from interface org.apache.hbase.thirdparty.io.netty.channel.ChannelHandler
org.apache.hbase.thirdparty.io.netty.channel.ChannelHandler.Sharable -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Logger(package private) static final Stringprivate static final BufferCallBeforeInitHandler.BufferCallEvent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexceptionCaught(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, Throwable cause) voidflush(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx) private booleanisSslError(Throwable cause) voiduserEventTriggered(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, Object evt) voidwrite(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, Object msg, org.apache.hbase.thirdparty.io.netty.channel.ChannelPromise promise) Methods inherited from class org.apache.hbase.thirdparty.io.netty.channel.ChannelDuplexHandler
bind, close, connect, deregister, disconnect, readMethods inherited from class org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChangedMethods inherited from class org.apache.hbase.thirdparty.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 org.apache.hbase.thirdparty.io.netty.channel.ChannelHandler
handlerAdded, handlerRemoved
-
Field Details
-
LOG
-
NAME
- See Also:
-
SUCCESS_EVENT
-
id2Call
-
-
Constructor Details
-
BufferCallBeforeInitHandler
-
-
Method Details
-
write
public void write(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, Object msg, org.apache.hbase.thirdparty.io.netty.channel.ChannelPromise promise) - Specified by:
writein interfaceorg.apache.hbase.thirdparty.io.netty.channel.ChannelOutboundHandler- Overrides:
writein classorg.apache.hbase.thirdparty.io.netty.channel.ChannelDuplexHandler
-
flush
public void flush(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx) throws Exception - Specified by:
flushin interfaceorg.apache.hbase.thirdparty.io.netty.channel.ChannelOutboundHandler- Overrides:
flushin classorg.apache.hbase.thirdparty.io.netty.channel.ChannelDuplexHandler- Throws:
Exception
-
userEventTriggered
public void userEventTriggered(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, Object evt) throws Exception - Specified by:
userEventTriggeredin interfaceorg.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandler- Overrides:
userEventTriggeredin classorg.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandlerAdapter- Throws:
Exception
-
isSslError
-
exceptionCaught
public void exceptionCaught(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, Throwable cause) throws Exception - Specified by:
exceptionCaughtin interfaceorg.apache.hbase.thirdparty.io.netty.channel.ChannelHandler- Specified by:
exceptionCaughtin interfaceorg.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandler- Overrides:
exceptionCaughtin classorg.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandlerAdapter- Throws:
Exception
-