| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
callTimeout |
protected org.apache.hadoop.conf.Configuration |
conf |
protected byte[] |
endRow |
protected long |
endTime |
protected long |
globalStartTime |
protected com.alipay.oceanbase.rpc.ObTableClient |
obTableClient |
protected byte[] |
startRow |
protected String |
tableNameString |
| 构造器和说明 |
|---|
ServerCallable(org.apache.hadoop.conf.Configuration conf,
com.alipay.oceanbase.rpc.ObTableClient obTableClient,
String tableNameString,
byte[] startRow,
byte[] endRow,
int callTimeout)
ServerCallable
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterCall() |
void |
shouldRetry(Throwable throwable) |
void |
testConnectWhileIdle() |
T |
withoutRetries() |
T |
withoutRetries(boolean testWhileIdle)
Run this instance against the server once.
|
T |
withRetries()
Run this instance with retries, timed waits,
and refinds of missing regions.
|
protected final org.apache.hadoop.conf.Configuration conf
protected final com.alipay.oceanbase.rpc.ObTableClient obTableClient
protected final String tableNameString
protected int callTimeout
protected long globalStartTime
protected long endTime
protected byte[] startRow
protected byte[] endRow
public ServerCallable(org.apache.hadoop.conf.Configuration conf,
com.alipay.oceanbase.rpc.ObTableClient obTableClient,
String tableNameString,
byte[] startRow,
byte[] endRow,
int callTimeout)
conf - the conf to useobTableClient - obTableClient to usetableNameString - Table name to which tableNameString belongs.startRow - start rowendRow - end rowcallTimeout - timeoutpublic void afterCall()
public void testConnectWhileIdle()
public void shouldRetry(Throwable throwable) throws IOException
IOExceptionpublic T withRetries() throws IOException, RuntimeException
IOException - if a remote or network exception occursRuntimeException - other unspecified errorpublic T withoutRetries() throws IOException, RuntimeException
public T withoutRetries(boolean testWhileIdle) throws IOException, RuntimeException
testWhileIdle - test while idleIOException - if a remote or network exception occursRuntimeException - other unspecified errorCopyright © 2024. All rights reserved.