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 SummaryNested ClassesModifier and TypeClassDescriptionprivate static enumstatic final classNested classes/interfaces inherited from interface org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerorg.apache.hbase.thirdparty.io.netty.channel.ChannelHandler.Sharable
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Logger(package private) static final Stringprivate static final BufferCallBeforeInitHandler.BufferCallEvent
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.ChannelDuplexHandlerbind, close, connect, deregister, disconnect, readMethods inherited from class org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandlerAdapterchannelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChangedMethods inherited from class org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerAdapterensureNotSharable, handlerAdded, handlerRemoved, isSharableMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerhandlerAdded, handlerRemoved
- 
Field Details- 
LOG
- 
NAME- See Also:
 
- 
SUCCESS_EVENT
- 
id2Call
 
- 
- 
Constructor Details- 
BufferCallBeforeInitHandler
 
- 
- 
Method Details- 
writepublic 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 interface- org.apache.hbase.thirdparty.io.netty.channel.ChannelOutboundHandler
- Overrides:
- writein class- org.apache.hbase.thirdparty.io.netty.channel.ChannelDuplexHandler
 
- 
flushpublic void flush(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx) throws Exception - Specified by:
- flushin interface- org.apache.hbase.thirdparty.io.netty.channel.ChannelOutboundHandler
- Overrides:
- flushin class- org.apache.hbase.thirdparty.io.netty.channel.ChannelDuplexHandler
- Throws:
- Exception
 
- 
userEventTriggeredpublic void userEventTriggered(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, Object evt) throws Exception - Specified by:
- userEventTriggeredin interface- org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandler
- Overrides:
- userEventTriggeredin class- org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandlerAdapter
- Throws:
- Exception
 
- 
isSslError
- 
exceptionCaughtpublic void exceptionCaught(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, Throwable cause) throws Exception - Specified by:
- exceptionCaughtin interface- org.apache.hbase.thirdparty.io.netty.channel.ChannelHandler
- Specified by:
- exceptionCaughtin interface- org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandler
- Overrides:
- exceptionCaughtin class- org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandlerAdapter
- Throws:
- Exception
 
 
-