Package org.apache.hadoop.hbase.client
Class FlushRegionCallable
java.lang.Object
org.apache.hadoop.hbase.client.RegionAdminServiceCallable<org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.FlushRegionResponse>
org.apache.hadoop.hbase.client.FlushRegionCallable
- All Implemented Interfaces:
RetryingCallable<org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.FlushRegionResponse>
@Private
public class FlushRegionCallable
extends RegionAdminServiceCallable<org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.FlushRegionResponse>
A Callable for flushRegion() RPC.
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private final byte[]
private boolean
private final boolean
Fields inherited from class org.apache.hadoop.hbase.client.RegionAdminServiceCallable
connection, location, replicaId, row, rpcControllerFactory, stub, tableName
-
Constructor Summary
ConstructorDescriptionFlushRegionCallable
(ClusterConnection connection, RpcControllerFactory rpcControllerFactory, RegionInfo regionInfo, boolean writeFlushWalMarker) FlushRegionCallable
(ClusterConnection connection, RpcControllerFactory rpcControllerFactory, TableName tableName, byte[] regionName, byte[] regionStartKey, boolean writeFlushWalMarker) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.apache.hadoop.hbase.shaded.protobuf.generated.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.Methods inherited from class org.apache.hadoop.hbase.client.RegionAdminServiceCallable
call, getConnection, getCurrentPayloadCarryingRpcController, getExceptionMessage, getExceptionMessageAdditionalDetail, getLocation, getRegionLocations, setStub, sleep, throwable
-
Field Details
-
LOG
-
regionName
-
writeFlushWalMarker
-
reload
-
-
Constructor Details
-
FlushRegionCallable
public FlushRegionCallable(ClusterConnection connection, RpcControllerFactory rpcControllerFactory, TableName tableName, byte[] regionName, byte[] regionStartKey, boolean writeFlushWalMarker) -
FlushRegionCallable
public FlushRegionCallable(ClusterConnection connection, RpcControllerFactory rpcControllerFactory, RegionInfo regionInfo, boolean writeFlushWalMarker)
-
-
Method Details
-
prepare
Description copied from interface:RetryingCallable
Prepare by setting up any connections to servers, etc., ahead of call invocation. TODO: We call prepare before EVERY call. Seems wrong. FIX!!!!- Specified by:
prepare
in interfaceRetryingCallable<org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.FlushRegionResponse>
- Overrides:
prepare
in classRegionAdminServiceCallable<org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.FlushRegionResponse>
- Parameters:
reload
- Set this to true if need to requery locations- Throws:
IOException
- e
-
call
protected org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.FlushRegionResponse call(HBaseRpcController controller) throws Exception Description copied from class:RegionAdminServiceCallable
Run RPC call.- Specified by:
call
in classRegionAdminServiceCallable<org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.FlushRegionResponse>
- Parameters:
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.- Throws:
Exception
-