@InterfaceAudience.Private public class RpcRetryingCallerFactory extends Object
RpcRetryingCaller
Modifier and Type | Field and Description |
---|---|
protected org.apache.hadoop.conf.Configuration |
conf |
private ConnectionConfiguration |
connectionConf |
static String |
CUSTOM_CALLER_CONF_KEY
Configuration key for a custom
RpcRetryingCaller |
private RetryingCallerInterceptor |
interceptor |
private int |
startLogErrorsCnt |
Constructor and Description |
---|
RpcRetryingCallerFactory(org.apache.hadoop.conf.Configuration conf) |
RpcRetryingCallerFactory(org.apache.hadoop.conf.Configuration conf,
RetryingCallerInterceptor interceptor) |
Modifier and Type | Method and Description |
---|---|
static RpcRetryingCallerFactory |
instantiate(org.apache.hadoop.conf.Configuration configuration) |
static RpcRetryingCallerFactory |
instantiate(org.apache.hadoop.conf.Configuration configuration,
RetryingCallerInterceptor interceptor,
ServerStatisticTracker stats) |
static RpcRetryingCallerFactory |
instantiate(org.apache.hadoop.conf.Configuration configuration,
ServerStatisticTracker stats) |
<T> RpcRetryingCaller<T> |
newCaller()
Create a new RetryingCaller with configured rpc timeout.
|
<T> RpcRetryingCaller<T> |
newCaller(int rpcTimeout)
Create a new RetryingCaller with specific rpc timeout.
|
public static final String CUSTOM_CALLER_CONF_KEY
RpcRetryingCaller
protected final org.apache.hadoop.conf.Configuration conf
private final ConnectionConfiguration connectionConf
private final RetryingCallerInterceptor interceptor
private final int startLogErrorsCnt
public RpcRetryingCallerFactory(org.apache.hadoop.conf.Configuration conf)
public RpcRetryingCallerFactory(org.apache.hadoop.conf.Configuration conf, RetryingCallerInterceptor interceptor)
public <T> RpcRetryingCaller<T> newCaller(int rpcTimeout)
public <T> RpcRetryingCaller<T> newCaller()
public static RpcRetryingCallerFactory instantiate(org.apache.hadoop.conf.Configuration configuration)
public static RpcRetryingCallerFactory instantiate(org.apache.hadoop.conf.Configuration configuration, ServerStatisticTracker stats)
public static RpcRetryingCallerFactory instantiate(org.apache.hadoop.conf.Configuration configuration, RetryingCallerInterceptor interceptor, ServerStatisticTracker stats)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.