public class DefaultOperatorCoordinatorHandler extends Object implements OperatorCoordinatorHandler
OperatorCoordinators
.Constructor and Description |
---|
DefaultOperatorCoordinatorHandler(ExecutionGraph executionGraph,
GlobalFailureHandler globalFailureHandler) |
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 evt)
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)
Register and start new operator coordinators.
|
void |
startAllOperatorCoordinators()
Start all operator coordinators.
|
public DefaultOperatorCoordinatorHandler(ExecutionGraph executionGraph, GlobalFailureHandler globalFailureHandler)
public void initializeOperatorCoordinators(ComponentMainThreadExecutor mainThreadExecutor)
OperatorCoordinatorHandler
initializeOperatorCoordinators
in interface OperatorCoordinatorHandler
mainThreadExecutor
- Executor for submitting work to the main thread.public void startAllOperatorCoordinators()
OperatorCoordinatorHandler
startAllOperatorCoordinators
in interface OperatorCoordinatorHandler
public void disposeAllOperatorCoordinators()
OperatorCoordinatorHandler
disposeAllOperatorCoordinators
in interface OperatorCoordinatorHandler
public void deliverOperatorEventToCoordinator(ExecutionAttemptID taskExecutionId, OperatorID operatorId, OperatorEvent evt) throws FlinkException
OperatorCoordinatorHandler
OperatorCoordinator
.deliverOperatorEventToCoordinator
in interface OperatorCoordinatorHandler
taskExecutionId
- Execution attempt id of the originating task.operatorId
- OperatorId of the target OperatorCoordinator.evt
- Event to deliver to the OperatorCoordinator.FlinkException
- If no coordinator is registered for operator.public CompletableFuture<CoordinationResponse> deliverCoordinationRequestToCoordinator(OperatorID operator, CoordinationRequest request) throws FlinkException
OperatorCoordinatorHandler
deliverCoordinationRequestToCoordinator
in interface OperatorCoordinatorHandler
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.public void registerAndStartNewCoordinators(Collection<OperatorCoordinatorHolder> coordinators, ComponentMainThreadExecutor mainThreadExecutor)
OperatorCoordinatorHandler
registerAndStartNewCoordinators
in interface OperatorCoordinatorHandler
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.