@InterfaceAudience.Private public class RpcRetryingCallerWithReadReplicas extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ClusterConnection |
cConnection |
protected org.apache.hadoop.conf.Configuration |
conf |
protected Get |
get |
protected ExecutorService |
pool |
protected org.apache.hadoop.hbase.TableName |
tableName |
protected int |
timeBeforeReplicas |
| Constructor and Description |
|---|
RpcRetryingCallerWithReadReplicas(RpcControllerFactory rpcControllerFactory,
org.apache.hadoop.hbase.TableName tableName,
ClusterConnection cConnection,
Get get,
ExecutorService pool,
int retries,
int callTimeout,
int timeBeforeReplicas) |
| Modifier and Type | Method and Description |
|---|---|
Result |
call()
Algo:
- we put the query into the execution pool.
|
protected final ExecutorService pool
protected final ClusterConnection cConnection
protected final org.apache.hadoop.conf.Configuration conf
protected final Get get
protected final org.apache.hadoop.hbase.TableName tableName
protected final int timeBeforeReplicas
public RpcRetryingCallerWithReadReplicas(RpcControllerFactory rpcControllerFactory, org.apache.hadoop.hbase.TableName tableName, ClusterConnection cConnection, Get get, ExecutorService pool, int retries, int callTimeout, int timeBeforeReplicas)
public Result call() throws DoNotRetryIOException, InterruptedIOException, RetriesExhaustedException
Copyright © 2007–2017. All rights reserved.