Snappy addition (Replace System.exit with exitExecutor).
Snappy addition (Replace System.exit with exitExecutor). We could have added functions calling System.exit to SnappyCoarseGrainedExecutorBackend but those functions will have to be brought in sync with CoarseGrainedExecutorBackend after every merge.
Invoked when remoteAddress is connected to the current node.
Invoked when remoteAddress is connected to the current node.
Invoked when remoteAddress is lost.
Invoked when remoteAddress is lost.
Invoked when any exception is thrown during handling messages.
Invoked when any exception is thrown during handling messages.
Invoked when some network error happens in the connection between the current node and
remoteAddress.
Invoked when some network error happens in the connection between the current node and
remoteAddress.
Invoked before RpcEndpoint starts to handle any message.
Invoked before RpcEndpoint starts to handle any message.
Invoked when RpcEndpoint is stopping.
Invoked when RpcEndpoint is stopping. self will be null in this method and you cannot
use it to send or ask messages.
Process messages from RpcEndpointRef.send or RpcCallContext.reply).
Process messages from RpcEndpointRef.send or RpcCallContext.reply). If receiving a
unmatched message, SparkException will be thrown and sent to onError.
Process messages from RpcEndpointRef.ask.
Process messages from RpcEndpointRef.ask. If receiving a unmatched message,
SparkException will be thrown and sent to onError.
The RpcEnv that this RpcEndpoint is registered to.
The RpcEnv that this RpcEndpoint is registered to.
The RpcEndpointRef of this RpcEndpoint.
The RpcEndpointRef of this RpcEndpoint. self will become valid when onStart is
called. And self will become null when onStop is called.
Note: Because before onStart, RpcEndpoint has not yet been registered and there is not
valid RpcEndpointRef for it. So don't call self before onStart is called.
Avoid sending any message for TaskState.RUNNING which serves no purpose.
Avoid sending any message for TaskState.RUNNING which serves no purpose.
A convenient method to stop RpcEndpoint.
A convenient method to stop RpcEndpoint.