Interface RemoteProcedureDispatcher.RemoteProcedure<TEnv,TRemote>
- All Known Implementing Classes:
AssignProcedure
,ClaimReplicationQueueRemoteProcedure
,CloseRegionProcedure
,FlushRegionProcedure
,OpenRegionProcedure
,RefreshPeerProcedure
,RegionRemoteProcedureBase
,RegionTransitionProcedure
,ServerRemoteProcedure
,SnapshotRegionProcedure
,SnapshotVerifyProcedure
,SplitWALRemoteProcedure
,SwitchRpcThrottleRemoteProcedure
,UnassignProcedure
- Enclosing class:
- RemoteProcedureDispatcher<TEnv,
TRemote extends Comparable<TRemote>>
public static interface RemoteProcedureDispatcher.RemoteProcedure<TEnv,TRemote>
Remote procedure reference.
-
Method Summary
Modifier and TypeMethodDescriptionremoteCallBuild
(TEnv env, TRemote remote) For building the remote operation.void
remoteCallFailed
(TEnv env, TRemote remote, IOException exception) Called when the executeProcedure call is failed.void
Called when RS tells the remote procedure is succeeded through thereportProcedureDone
method.void
remoteOperationFailed
(TEnv env, RemoteProcedureException error) Called when RS tells the remote procedure is failed through thereportProcedureDone
method.default boolean
Whether store this remote procedure in dispatched queue only OpenRegionProcedure and CloseRegionProcedure return false since they are not fully controlled by dispatcher
-
Method Details
-
remoteCallBuild
For building the remote operation. May be empty if no need to send remote call. Usually, this means the RemoteProcedure has been finished already. This is possible, as we may have already sent the procedure to RS but then the rpc connection is broken so the executeProcedures call fails, but the RS does receive the procedure and execute it and then report back, before we retry again. -
remoteCallFailed
Called when the executeProcedure call is failed. -
remoteOperationCompleted
Called when RS tells the remote procedure is succeeded through thereportProcedureDone
method. -
remoteOperationFailed
Called when RS tells the remote procedure is failed through thereportProcedureDone
method. -
storeInDispatchedQueue
Whether store this remote procedure in dispatched queue only OpenRegionProcedure and CloseRegionProcedure return false since they are not fully controlled by dispatcher
-