Modifier and Type | Field and Description |
---|---|
static String |
CUSTOM_RPC_CLIENT_IMPL_CONF_KEY |
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
|
public static final String CUSTOM_RPC_CLIENT_IMPL_CONF_KEY
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 metricspublic 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–2019 Cloudera. All rights reserved.