@InterfaceAudience.Private public class FlushRegionCallable extends RegionAdminServiceCallable<AdminProtos.FlushRegionResponse>
connection, location, replicaId, row, rpcControllerFactory, stub, tableName
Constructor and Description |
---|
FlushRegionCallable(ClusterConnection connection,
RpcControllerFactory rpcControllerFactory,
RegionInfo regionInfo,
boolean writeFlushWalMarker) |
FlushRegionCallable(ClusterConnection connection,
RpcControllerFactory rpcControllerFactory,
TableName tableName,
byte[] regionName,
byte[] regionStartKey,
boolean writeFlushWalMarker) |
Modifier and Type | Method and Description |
---|---|
protected AdminProtos.FlushRegionResponse |
call(HBaseRpcController controller)
Run RPC call.
|
void |
prepare(boolean reload)
Prepare by setting up any connections to servers, etc., ahead of call invocation.
|
call, getExceptionMessage, getExceptionMessageAdditionalDetail, getLocation, getRegionLocations, setStub, sleep, throwable
public FlushRegionCallable(ClusterConnection connection, RpcControllerFactory rpcControllerFactory, TableName tableName, byte[] regionName, byte[] regionStartKey, boolean writeFlushWalMarker)
public FlushRegionCallable(ClusterConnection connection, RpcControllerFactory rpcControllerFactory, RegionInfo regionInfo, boolean writeFlushWalMarker)
public void prepare(boolean reload) throws IOException
RetryingCallable
prepare
in interface RetryingCallable<AdminProtos.FlushRegionResponse>
prepare
in class RegionAdminServiceCallable<AdminProtos.FlushRegionResponse>
reload
- Set this to true if need to requery locationsIOException
- eprotected AdminProtos.FlushRegionResponse call(HBaseRpcController controller) throws Exception
RegionAdminServiceCallable
call
in class RegionAdminServiceCallable<AdminProtos.FlushRegionResponse>
controller
- PayloadCarryingRpcController is a mouthful but it at a minimum is a
facade on protobuf so we don't have to put protobuf everywhere; we can keep it behind this
class.Exception
Copyright © 2007–2019 Cloudera. All rights reserved.