public interface OperatorCoordinatorHandler
OperatorCoordinators.| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<CoordinationResponse> |
deliverCoordinationRequestToCoordinator(OperatorID operator,
CoordinationRequest request)
Deliver coordination request from the client to the coordinator.
|
void |
deliverOperatorEventToCoordinator(ExecutionAttemptID taskExecutionId,
OperatorID operatorId,
OperatorEvent event)
Delivers an OperatorEvent to a
OperatorCoordinator. |
void |
disposeAllOperatorCoordinators()
Dispose all operator coordinators.
|
void |
initializeOperatorCoordinators(org.apache.flink.runtime.concurrent.ComponentMainThreadExecutor mainThreadExecutor)
Initialize operator coordinators.
|
void |
registerAndStartNewCoordinators(Collection<OperatorCoordinatorHolder> coordinators,
org.apache.flink.runtime.concurrent.ComponentMainThreadExecutor mainThreadExecutor,
int parallelism)
Register and start new operator coordinators.
|
void |
startAllOperatorCoordinators()
Start all operator coordinators.
|
void initializeOperatorCoordinators(org.apache.flink.runtime.concurrent.ComponentMainThreadExecutor mainThreadExecutor)
mainThreadExecutor - Executor for submitting work to the main thread.void startAllOperatorCoordinators()
void disposeAllOperatorCoordinators()
void deliverOperatorEventToCoordinator(ExecutionAttemptID taskExecutionId, OperatorID operatorId, OperatorEvent event) throws org.apache.flink.util.FlinkException
OperatorCoordinator.taskExecutionId - Execution attempt id of the originating task.operatorId - OperatorId of the target OperatorCoordinator.event - Event to deliver to the OperatorCoordinator.org.apache.flink.util.FlinkException - If no coordinator is registered for operator.CompletableFuture<CoordinationResponse> deliverCoordinationRequestToCoordinator(OperatorID operator, CoordinationRequest request) throws org.apache.flink.util.FlinkException
operator - Id of target operator.request - request for the operator.org.apache.flink.util.FlinkException - If the coordinator doesn't exist or if it can not handle the request.void registerAndStartNewCoordinators(Collection<OperatorCoordinatorHolder> coordinators, org.apache.flink.runtime.concurrent.ComponentMainThreadExecutor mainThreadExecutor, int parallelism)
coordinators - the operator coordinator to be registered.mainThreadExecutor - Executor for submitting work to the main thread.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.