@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 | 
|---|---|
| static String | EVENT_LOOP_CONFIG | 
| static String | HBASE_NETTY_EVENTLOOP_RPCCLIENT_THREADCOUNT_KEYName of property to change netty rpc client eventloop thread count. | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | createEventLoopPerClient(org.apache.hadoop.conf.Configuration conf)The  NettyRpcClientwill create its ownNioEventLoopGroup. | 
| 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
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.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.