Class NettyRpcClientConfigHelper

java.lang.Object
org.apache.hadoop.hbase.ipc.NettyRpcClientConfigHelper

@Public public final class NettyRpcClientConfigHelper extends Object
Helper class for passing config to NettyRpcClient.

As hadoop Configuration can not pass an Object directly, we need to find a way to pass the EventLoopGroup to AsyncRpcClient if we want to use a single EventLoopGroup for the whole process.

Since:
2.0.0
  • Field Details

  • Constructor Details

  • Method Details

    • setEventLoopConfig

      public static void setEventLoopConfig(org.apache.hadoop.conf.Configuration conf, org.apache.hbase.thirdparty.io.netty.channel.EventLoopGroup group, Class<? extends org.apache.hbase.thirdparty.io.netty.channel.Channel> channelClass)
      Set the EventLoopGroup and channel class for AsyncRpcClient.
    • createEventLoopPerClient

      public static void createEventLoopPerClient(org.apache.hadoop.conf.Configuration conf)
      The NettyRpcClient will create its own NioEventLoopGroup.
    • getDefaultEventLoopConfig

      private static Pair<org.apache.hbase.thirdparty.io.netty.channel.EventLoopGroup,Class<? extends org.apache.hbase.thirdparty.io.netty.channel.Channel>> getDefaultEventLoopConfig(org.apache.hadoop.conf.Configuration conf)
    • getEventLoopConfig

      static Pair<org.apache.hbase.thirdparty.io.netty.channel.EventLoopGroup,Class<? extends org.apache.hbase.thirdparty.io.netty.channel.Channel>> getEventLoopConfig(org.apache.hadoop.conf.Configuration conf)