@InterfaceAudience.Private class NettyRpcDuplexHandler extends org.apache.hbase.thirdparty.io.netty.channel.ChannelDuplexHandler
| Modifier and Type | Field and Description |
|---|---|
private CellBlockBuilder |
cellBlockBuilder |
private Codec |
codec |
private org.apache.hadoop.io.compress.CompressionCodec |
compressor |
private NettyRpcConnection |
conn |
private Map<Integer,Call> |
id2Call |
private static org.slf4j.Logger |
LOG |
| Constructor and Description |
|---|
NettyRpcDuplexHandler(NettyRpcConnection conn,
CellBlockBuilder cellBlockBuilder,
Codec codec,
org.apache.hadoop.io.compress.CompressionCodec compressor) |
| Modifier and Type | Method and Description |
|---|---|
void |
channelInactive(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx) |
void |
channelRead(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx,
Object msg) |
private void |
cleanupCalls(IOException error) |
void |
exceptionCaught(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
private void |
readResponse(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx,
org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf buf) |
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) |
private void |
writeRequest(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx,
Call call,
org.apache.hbase.thirdparty.io.netty.channel.ChannelPromise promise) |
bind, close, connect, deregister, disconnect, flush, readchannelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChangedensureNotSharable, handlerAdded, handlerRemoved, isSharableprivate static final org.slf4j.Logger LOG
private final NettyRpcConnection conn
private final CellBlockBuilder cellBlockBuilder
private final org.apache.hadoop.io.compress.CompressionCodec compressor
public NettyRpcDuplexHandler(NettyRpcConnection conn, CellBlockBuilder cellBlockBuilder, Codec codec, org.apache.hadoop.io.compress.CompressionCodec compressor)
private void writeRequest(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, Call call, org.apache.hbase.thirdparty.io.netty.channel.ChannelPromise promise) throws IOException
IOExceptionpublic void write(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, Object msg, org.apache.hbase.thirdparty.io.netty.channel.ChannelPromise promise) throws Exception
write in interface org.apache.hbase.thirdparty.io.netty.channel.ChannelOutboundHandlerwrite in class org.apache.hbase.thirdparty.io.netty.channel.ChannelDuplexHandlerExceptionprivate void readResponse(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf buf) throws IOException
IOExceptionpublic void channelRead(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, Object msg) throws Exception
channelRead in interface org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandlerchannelRead in class org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandlerAdapterExceptionprivate void cleanupCalls(IOException error)
public void channelInactive(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelInactive in interface org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandlerchannelInactive in class org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandlerAdapterExceptionpublic void exceptionCaught(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
exceptionCaught in interface org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerexceptionCaught in interface org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandlerexceptionCaught in class org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandlerAdapterpublic void userEventTriggered(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, Object evt) throws Exception
userEventTriggered in interface org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandleruserEventTriggered in class org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandlerAdapterExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.