@InterfaceAudience.Private public class FlushRegionCallable extends RegionAdminServiceCallable<AdminProtos.FlushRegionResponse>
connection, location, MIN_WAIT_DEAD_SERVER, replicaId, row, rpcControllerFactory, stub, tableName| Constructor and Description |
|---|
FlushRegionCallable(ClusterConnection connection,
RpcControllerFactory rpcControllerFactory,
HRegionInfo regionInfo,
boolean writeFlushWalMarker) |
FlushRegionCallable(ClusterConnection connection,
RpcControllerFactory rpcControllerFactory,
TableName tableName,
byte[] regionName,
byte[] regionStartKey,
boolean writeFlushWalMarker) |
| Modifier and Type | Method and Description |
|---|---|
AdminProtos.FlushRegionResponse |
call(int callTimeout)
Computes a result, or throws an exception if unable to do so.
|
void |
prepare(boolean reload)
Prepare by setting up any connections to servers, etc., ahead of
RetryingCallable.call(int) invocation. |
getExceptionMessage, getExceptionMessageAdditionalDetail, getLocation, getRegionLocations, setStub, sleep, throwablepublic FlushRegionCallable(ClusterConnection connection, RpcControllerFactory rpcControllerFactory, TableName tableName, byte[] regionName, byte[] regionStartKey, boolean writeFlushWalMarker)
public FlushRegionCallable(ClusterConnection connection, RpcControllerFactory rpcControllerFactory, HRegionInfo regionInfo, boolean writeFlushWalMarker)
public AdminProtos.FlushRegionResponse call(int callTimeout) throws Exception
RetryingCallablecallTimeout - - the time available for this call. 0 for infinite.Exception - if unable to compute a resultpublic void prepare(boolean reload)
throws IOException
RetryingCallableRetryingCallable.call(int) invocation.prepare in interface RetryingCallable<AdminProtos.FlushRegionResponse>prepare in class RegionAdminServiceCallable<AdminProtos.FlushRegionResponse>reload - Set this to true if need to requery locationsIOException - e