RpcEndpoint¶
RpcEndpoint is an abstraction of RPC endpoints that are registered to an RpcEnv to process one- (fire-and-forget) or two-way messages.
Contract¶
onConnected¶
Invoked when RpcAddress is connected to the current node
Used when:
Inboxis requested to process aRemoteProcessConnectedmessage
onDisconnected¶
Used when:
Inboxis requested to process aRemoteProcessDisconnectedmessage
onError¶
Used when:
Inboxis requested to process a message that threw aNonFatalexception
onNetworkError¶
Used when:
Inboxis requested to process aRemoteProcessConnectionErrormessage
onStart¶
Used when:
Inboxis requested to process anOnStartmessage
onStop¶
Used when:
Inboxis requested to process anOnStopmessage
Processing One-Way Messages¶
Used when:
Inboxis requested to process anOneWayMessagemessage
Processing Two-Way Messages¶
Used when:
Inboxis requested to process aRpcMessagemessage
RpcEnv¶
RpcEnv this RpcEndpoint is registered to
Implementations¶
- AMEndpoint
- IsolatedRpcEndpoint
- MapOutputTrackerMasterEndpoint
- OutputCommitCoordinatorEndpoint
- RpcEndpointVerifier
- ThreadSafeRpcEndpoint
- WorkerWatcher
self¶
self requests the RpcEnv for the RpcEndpointRef of this RpcEndpoint.
self throws an IllegalArgumentException when the RpcEnv has not been initialized:
Stopping RpcEndpoint¶
stop requests the RpcEnv to stop this RpcEndpoint