@InterfaceAudience.Public public final class NettyRpcClientConfigHelper extends Object
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.
| Modifier and Type | Field and Description | 
|---|---|
| private static String | CONFIG_NAME | 
| private static Pair<org.apache.hbase.thirdparty.io.netty.channel.EventLoopGroup,Class<? extends org.apache.hbase.thirdparty.io.netty.channel.Channel>> | DEFAULT_EVENT_LOOP | 
| static String | EVENT_LOOP_CONFIG | 
| private static Map<String,Pair<org.apache.hbase.thirdparty.io.netty.channel.EventLoopGroup,Class<? extends org.apache.hbase.thirdparty.io.netty.channel.Channel>>> | EVENT_LOOP_CONFIG_MAP | 
| static String | HBASE_NETTY_EVENTLOOP_RPCCLIENT_THREADCOUNT_KEYName of property to change netty rpc client eventloop thread count. | 
| Modifier | Constructor and Description | 
|---|---|
| private  | NettyRpcClientConfigHelper()Shutdown constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | createEventLoopPerClient(org.apache.hadoop.conf.Configuration conf)The  NettyRpcClientwill create its ownNioEventLoopGroup. | 
| 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) | 
| (package private) 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) | 
| 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. | 
public static final String EVENT_LOOP_CONFIG
public static final String HBASE_NETTY_EVENTLOOP_RPCCLIENT_THREADCOUNT_KEY
private static final String CONFIG_NAME
private static final Map<String,Pair<org.apache.hbase.thirdparty.io.netty.channel.EventLoopGroup,Class<? extends org.apache.hbase.thirdparty.io.netty.channel.Channel>>> EVENT_LOOP_CONFIG_MAP
private static volatile Pair<org.apache.hbase.thirdparty.io.netty.channel.EventLoopGroup,Class<? extends org.apache.hbase.thirdparty.io.netty.channel.Channel>> DEFAULT_EVENT_LOOP
private NettyRpcClientConfigHelper()
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)
AsyncRpcClient.public static void createEventLoopPerClient(org.apache.hadoop.conf.Configuration conf)
NettyRpcClient will create its own NioEventLoopGroup.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)
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)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.