Class FanOutOneBlockAsyncDFSOutputSaslHelper.EncryptHandler

java.lang.Object
org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerAdapter
org.apache.hbase.thirdparty.io.netty.channel.ChannelOutboundHandlerAdapter
org.apache.hbase.thirdparty.io.netty.handler.codec.MessageToByteEncoder<org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf>
org.apache.hadoop.hbase.io.asyncfs.FanOutOneBlockAsyncDFSOutputSaslHelper.EncryptHandler
All Implemented Interfaces:
org.apache.hbase.thirdparty.io.netty.channel.ChannelHandler, org.apache.hbase.thirdparty.io.netty.channel.ChannelOutboundHandler
Enclosing class:
FanOutOneBlockAsyncDFSOutputSaslHelper

private static final class FanOutOneBlockAsyncDFSOutputSaslHelper.EncryptHandler extends org.apache.hbase.thirdparty.io.netty.handler.codec.MessageToByteEncoder<org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf>
  • Nested Class Summary

    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

    Fields
    Modifier and Type
    Field
    Description
    private final org.apache.hadoop.crypto.Encryptor
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    EncryptHandler(org.apache.hadoop.crypto.CryptoCodec codec, byte[] key, byte[] iv)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf
    allocateBuffer(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf msg, boolean preferDirect)
     
    protected void
    encode(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf msg, org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf out)
     

    Methods inherited from class org.apache.hbase.thirdparty.io.netty.handler.codec.MessageToByteEncoder

    acceptOutboundMessage, isPreferDirect, write

    Methods inherited from class org.apache.hbase.thirdparty.io.netty.channel.ChannelOutboundHandlerAdapter

    bind, close, connect, deregister, disconnect, flush, read

    Methods inherited from class org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerAdapter

    ensureNotSharable, exceptionCaught, 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

    exceptionCaught, handlerAdded, handlerRemoved
  • Field Details

    • encryptor

      private final org.apache.hadoop.crypto.Encryptor encryptor
  • Constructor Details

  • Method Details

    • allocateBuffer

      protected org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf allocateBuffer(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf msg, boolean preferDirect) throws Exception
      Overrides:
      allocateBuffer in class org.apache.hbase.thirdparty.io.netty.handler.codec.MessageToByteEncoder<org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf>
      Throws:
      Exception
    • encode

      protected void encode(org.apache.hbase.thirdparty.io.netty.channel.ChannelHandlerContext ctx, org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf msg, org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf out) throws Exception
      Specified by:
      encode in class org.apache.hbase.thirdparty.io.netty.handler.codec.MessageToByteEncoder<org.apache.hbase.thirdparty.io.netty.buffer.ByteBuf>
      Throws:
      Exception