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
Modifier and TypeClassDescriptionprivate static enum
static final class
Nested classes/interfaces inherited from interface org.apache.hbase.thirdparty.io.netty.channel.ChannelHandler
org.apache.hbase.thirdparty.io.netty.channel.ChannelHandler.Sharable
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
(package private) static final String
private static final BufferCallBeforeInitHandler.BufferCallEvent
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
exceptionCaught
(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, Throwable cause) void
flush
(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx) private boolean
isSslError
(Throwable cause) void
userEventTriggered
(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, Object evt) void
write
(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, read
Methods inherited from class org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandlerAdapter
channelActive, channelInactive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged
Methods inherited from class org.apache.hbase.thirdparty.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 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:
write
in interfaceorg.apache.hbase.thirdparty.io.netty.channel.ChannelOutboundHandler
- Overrides:
write
in 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:
flush
in interfaceorg.apache.hbase.thirdparty.io.netty.channel.ChannelOutboundHandler
- Overrides:
flush
in 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:
userEventTriggered
in interfaceorg.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandler
- Overrides:
userEventTriggered
in 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:
exceptionCaught
in interfaceorg.apache.hbase.thirdparty.io.netty.channel.ChannelHandler
- Specified by:
exceptionCaught
in interfaceorg.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandler
- Overrides:
exceptionCaught
in classorg.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandlerAdapter
- Throws:
Exception
-