@InterfaceAudience.Private public final class RpcClientFactory extends Object
RpcClient| Modifier and Type | Field and Description |
|---|---|
static String |
CUSTOM_RPC_CLIENT_IMPL_CONF_KEY |
private static org.apache.hbase.thirdparty.com.google.common.collect.ImmutableMap<String,String> |
DEPRECATED_NAME_MAPPING |
| Modifier | Constructor and Description |
|---|---|
private |
RpcClientFactory()
Private Constructor
|
| Modifier and Type | Method and Description |
|---|---|
static RpcClient |
createClient(org.apache.hadoop.conf.Configuration conf,
String clusterId)
Helper method for tests only.
|
static RpcClient |
createClient(org.apache.hadoop.conf.Configuration conf,
String clusterId,
MetricsConnection metrics)
Creates a new RpcClient by the class defined in the configuration or falls back to
RpcClientImpl
|
static RpcClient |
createClient(org.apache.hadoop.conf.Configuration conf,
String clusterId,
SocketAddress localAddr,
MetricsConnection metrics)
Creates a new RpcClient by the class defined in the configuration or falls back to
RpcClientImpl
|
private static String |
getRpcClientClass(org.apache.hadoop.conf.Configuration conf) |
public static final String CUSTOM_RPC_CLIENT_IMPL_CONF_KEY
private static final org.apache.hbase.thirdparty.com.google.common.collect.ImmutableMap<String,String> DEPRECATED_NAME_MAPPING
private RpcClientFactory()
public static RpcClient createClient(org.apache.hadoop.conf.Configuration conf, String clusterId)
RpcClient without metrics.public static RpcClient createClient(org.apache.hadoop.conf.Configuration conf, String clusterId, MetricsConnection metrics)
conf - configurationclusterId - the cluster idmetrics - the connection metricsprivate static String getRpcClientClass(org.apache.hadoop.conf.Configuration conf)
public static RpcClient createClient(org.apache.hadoop.conf.Configuration conf, String clusterId, SocketAddress localAddr, MetricsConnection metrics)
conf - configurationclusterId - the cluster idlocalAddr - client socket bind address.metrics - the connection metricsCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.