deactivateInstances(runId: UUID): Unit
StateStoreCoordinatorRef — RPC Endpoint Reference to StateStoreCoordinator
StateStoreCoordinatorRef is used to (let the tasks on Spark executors to) send messages to the StateStoreCoordinator (that lives on the driver).
StateStoreCoordinatorRef is given the RpcEndpointRef to the StateStoreCoordinator RPC endpoint when created.
StateStoreCoordinatorRef is created through StateStoreCoordinatorRef helper object when requested to create one for the driver (when StreamingQueryManager is created) or an executor (when StateStore helper object is requested for the RPC endpoint reference to StateStoreCoordinator for Executors).
| Method | Description |
|---|---|
|
Requests the RpcEndpointRef to send a DeactivateInstances synchronous message with the given Used exclusively when |
|
Requests the RpcEndpointRef to send a GetLocation synchronous message with the given StateStoreProviderId and waits for the location Used when:
|
|
Requests the RpcEndpointRef to send a ReportActiveInstance one-way asynchronous (fire-and-forget) message with the given StateStoreProviderId, Used exclusively when |
|
Requests the RpcEndpointRef to send a StopCoordinator synchronous message Used exclusively for unit testing |
|
Requests the RpcEndpointRef to send a VerifyIfInstanceActive synchronous message with the given StateStoreProviderId and Used exclusively when |
Creating StateStoreCoordinatorRef to StateStoreCoordinator RPC Endpoint for Driver — forDriver Factory Method
forDriver(env: SparkEnv): StateStoreCoordinatorRef
forDriver…FIXME
|
Note
|
forDriver is used exclusively when StreamingQueryManager is created.
|
Creating StateStoreCoordinatorRef to StateStoreCoordinator RPC Endpoint for Executor — forExecutor Factory Method
forExecutor(env: SparkEnv): StateStoreCoordinatorRef
forExecutor…FIXME
|
Note
|
forExecutor is used exclusively when StateStore helper object is requested for the RPC endpoint reference to StateStoreCoordinator for Executors.
|