Class RegionReplicaReplicationEndpoint.RegionReplicaReplayCallable
java.lang.Object
org.apache.hadoop.hbase.client.RegionAdminServiceCallable<org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.ReplicateWALEntryResponse>
org.apache.hadoop.hbase.replication.regionserver.RegionReplicaReplicationEndpoint.RegionReplicaReplayCallable
- All Implemented Interfaces:
RetryingCallable<org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.ReplicateWALEntryResponse>
- Enclosing class:
- RegionReplicaReplicationEndpoint
static class RegionReplicaReplicationEndpoint.RegionReplicaReplayCallable
extends RegionAdminServiceCallable<org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.ReplicateWALEntryResponse>
Calls replay on the passed edits for the given set of entries belonging to the region. It skips
the entry if the region boundaries have changed or the region is gone.
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.client.RegionAdminServiceCallable
connection, location, replicaId, row, rpcControllerFactory, stub, tableName
-
Constructor Summary
ConstructorDescriptionRegionReplicaReplayCallable
(ClusterConnection connection, RpcControllerFactory rpcControllerFactory, TableName tableName, HRegionLocation location, RegionInfo regionInfo, byte[] row, List<WAL.Entry> entries, AtomicLong skippedEntries) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.ReplicateWALEntryResponse
call
(HBaseRpcController controller) Run RPC call.Methods inherited from class org.apache.hadoop.hbase.client.RegionAdminServiceCallable
call, getExceptionMessage, getExceptionMessageAdditionalDetail, getLocation, getRegionLocations, prepare, setStub, sleep, throwable
-
Field Details
-
entries
-
initialEncodedRegionName
-
skippedEntries
-
-
Constructor Details
-
RegionReplicaReplayCallable
public RegionReplicaReplayCallable(ClusterConnection connection, RpcControllerFactory rpcControllerFactory, TableName tableName, HRegionLocation location, RegionInfo regionInfo, byte[] row, List<WAL.Entry> entries, AtomicLong skippedEntries)
-
-
Method Details
-
call
public org.apache.hadoop.hbase.shaded.protobuf.generated.AdminProtos.ReplicateWALEntryResponse 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.ReplicateWALEntryResponse>
- 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
-