@InterfaceAudience.Private public class NettyHBaseSaslRpcClientHandler extends io.netty.channel.SimpleChannelInboundHandler<io.netty.buffer.ByteBuf>
Constructor and Description |
---|
NettyHBaseSaslRpcClientHandler(io.netty.util.concurrent.Promise<Boolean> saslPromise,
org.apache.hadoop.security.UserGroupInformation ugi,
AuthMethod method,
org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token,
String serverPrincipal,
boolean fallbackAllowed,
String rpcProtection) |
Modifier and Type | Method and Description |
---|---|
void |
channelInactive(io.netty.channel.ChannelHandlerContext ctx) |
protected void |
channelRead0(io.netty.channel.ChannelHandlerContext ctx,
io.netty.buffer.ByteBuf msg) |
void |
exceptionCaught(io.netty.channel.ChannelHandlerContext ctx,
Throwable cause) |
void |
handlerAdded(io.netty.channel.ChannelHandlerContext ctx) |
acceptInboundMessage, channelRead
channelActive, channelReadComplete, channelRegistered, channelUnregistered, channelWritabilityChanged, userEventTriggered
public NettyHBaseSaslRpcClientHandler(io.netty.util.concurrent.Promise<Boolean> saslPromise, org.apache.hadoop.security.UserGroupInformation ugi, AuthMethod method, org.apache.hadoop.security.token.Token<? extends org.apache.hadoop.security.token.TokenIdentifier> token, String serverPrincipal, boolean fallbackAllowed, String rpcProtection) throws IOException
saslPromise
- true
if success, false
if server tells us to fallback to
simple.IOException
public void handlerAdded(io.netty.channel.ChannelHandlerContext ctx)
handlerAdded
in interface io.netty.channel.ChannelHandler
handlerAdded
in class io.netty.channel.ChannelHandlerAdapter
protected void channelRead0(io.netty.channel.ChannelHandlerContext ctx, io.netty.buffer.ByteBuf msg) throws Exception
channelRead0
in class io.netty.channel.SimpleChannelInboundHandler<io.netty.buffer.ByteBuf>
Exception
public void channelInactive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
channelInactive
in interface io.netty.channel.ChannelInboundHandler
channelInactive
in class io.netty.channel.ChannelInboundHandlerAdapter
Exception
public void exceptionCaught(io.netty.channel.ChannelHandlerContext ctx, Throwable cause)
exceptionCaught
in interface io.netty.channel.ChannelHandler
exceptionCaught
in interface io.netty.channel.ChannelInboundHandler
exceptionCaught
in class io.netty.channel.ChannelInboundHandlerAdapter
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.