@InterfaceAudience.Private public class NettyHBaseRpcConnectionHeaderHandler extends org.apache.hbase.thirdparty.io.netty.channel.SimpleChannelInboundHandler<org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf>
Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.conf.Configuration |
conf |
private org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf |
connectionHeaderWithLength |
private org.apache.hbase.thirdparty.io.netty.util.concurrent.Promise<Boolean> |
saslPromise |
Constructor and Description |
---|
NettyHBaseRpcConnectionHeaderHandler(org.apache.hbase.thirdparty.io.netty.util.concurrent.Promise<Boolean> saslPromise,
org.apache.hadoop.conf.Configuration conf,
org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf connectionHeaderWithLength) |
Modifier and Type | Method and Description |
---|---|
protected void |
channelRead0(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx,
org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf msg) |
void |
exceptionCaught(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
void |
handlerAdded(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx) |
private void |
setupCryptoAESHandler(org.apache.hbase.thirdparty.io.netty.channel.ChannelPipeline p,
CryptoAES cryptoAES)
Remove handlers for sasl encryption and add handlers for Crypto AES encryption
|
acceptInboundMessage, channelRead
channelActive, channelInactive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
ensureNotSharable, handlerRemoved, isSharable
private final org.apache.hbase.thirdparty.io.netty.util.concurrent.Promise<Boolean> saslPromise
private final org.apache.hadoop.conf.Configuration conf
private final org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf connectionHeaderWithLength
public NettyHBaseRpcConnectionHeaderHandler(org.apache.hbase.thirdparty.io.netty.util.concurrent.Promise<Boolean> saslPromise, org.apache.hadoop.conf.Configuration conf, org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf connectionHeaderWithLength)
protected void channelRead0(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf msg) throws Exception
channelRead0
in class org.apache.hbase.thirdparty.io.netty.channel.SimpleChannelInboundHandler<org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf>
Exception
public void handlerAdded(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx)
handlerAdded
in interface org.apache.hbase.thirdparty.io.netty.channel.ChannelHandler
handlerAdded
in class org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerAdapter
public void exceptionCaught(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
exceptionCaught
in interface org.apache.hbase.thirdparty.io.netty.channel.ChannelHandler
exceptionCaught
in interface org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandler
exceptionCaught
in class org.apache.hbase.thirdparty.io.netty.channel.ChannelInboundHandlerAdapter
private void setupCryptoAESHandler(org.apache.hbase.thirdparty.io.netty.channel.ChannelPipeline p, CryptoAES cryptoAES)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.