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(ComponentMainThreadExecutor mainThreadExecutor)
Initialize operator coordinators.
|
void |
registerAndStartNewCoordinators(Collection<OperatorCoordinatorHolder> coordinators,
ComponentMainThreadExecutor mainThreadExecutor,
int parallelism)
Register and start new operator coordinators.
|
void |
startAllOperatorCoordinators()
Start all operator coordinators.
|
void initializeOperatorCoordinators(ComponentMainThreadExecutor mainThreadExecutor)
mainThreadExecutor
- Executor for submitting work to the main thread.void startAllOperatorCoordinators()
void disposeAllOperatorCoordinators()
void deliverOperatorEventToCoordinator(ExecutionAttemptID taskExecutionId, OperatorID operatorId, OperatorEvent event) throws FlinkException
OperatorCoordinator
.taskExecutionId
- Execution attempt id of the originating task.operatorId
- OperatorId of the target OperatorCoordinator.event
- Event to deliver to the OperatorCoordinator.FlinkException
- If no coordinator is registered for operator.CompletableFuture<CoordinationResponse> deliverCoordinationRequestToCoordinator(OperatorID operator, CoordinationRequest request) throws FlinkException
operator
- Id of target operator.request
- request for the operator.FlinkException
- If the coordinator doesn't exist or if it can not handle the request.void registerAndStartNewCoordinators(Collection<OperatorCoordinatorHolder> coordinators, 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.