Interface OperatorCoordinatorHandler
-
- All Known Implementing Classes:
DefaultOperatorCoordinatorHandler
public interface OperatorCoordinatorHandlerHandler for theOperatorCoordinators.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CompletableFuture<CoordinationResponse>deliverCoordinationRequestToCoordinator(OperatorID operator, CoordinationRequest request)Deliver coordination request from the client to the coordinator.voiddeliverOperatorEventToCoordinator(ExecutionAttemptID taskExecutionId, OperatorID operatorId, OperatorEvent event)Delivers an OperatorEvent to aOperatorCoordinator.voiddisposeAllOperatorCoordinators()Dispose all operator coordinators.voidinitializeOperatorCoordinators(org.apache.flink.runtime.concurrent.ComponentMainThreadExecutor mainThreadExecutor)Initialize operator coordinators.voidregisterAndStartNewCoordinators(Collection<OperatorCoordinatorHolder> coordinators, org.apache.flink.runtime.concurrent.ComponentMainThreadExecutor mainThreadExecutor, int parallelism)Register and start new operator coordinators.voidstartAllOperatorCoordinators()Start all operator coordinators.
-
-
-
Method Detail
-
initializeOperatorCoordinators
void initializeOperatorCoordinators(org.apache.flink.runtime.concurrent.ComponentMainThreadExecutor mainThreadExecutor)
Initialize operator coordinators.- Parameters:
mainThreadExecutor- Executor for submitting work to the main thread.
-
startAllOperatorCoordinators
void startAllOperatorCoordinators()
Start all operator coordinators.
-
disposeAllOperatorCoordinators
void disposeAllOperatorCoordinators()
Dispose all operator coordinators.
-
deliverOperatorEventToCoordinator
void deliverOperatorEventToCoordinator(ExecutionAttemptID taskExecutionId, OperatorID operatorId, OperatorEvent event) throws org.apache.flink.util.FlinkException
Delivers an OperatorEvent to aOperatorCoordinator.- Parameters:
taskExecutionId- Execution attempt id of the originating task.operatorId- OperatorId of the target OperatorCoordinator.event- Event to deliver to the OperatorCoordinator.- Throws:
org.apache.flink.util.FlinkException- If no coordinator is registered for operator.
-
deliverCoordinationRequestToCoordinator
CompletableFuture<CoordinationResponse> deliverCoordinationRequestToCoordinator(OperatorID operator, CoordinationRequest request) throws org.apache.flink.util.FlinkException
Deliver coordination request from the client to the coordinator.- Parameters:
operator- Id of target operator.request- request for the operator.- Returns:
- Future with the response.
- Throws:
org.apache.flink.util.FlinkException- If the coordinator doesn't exist or if it can not handle the request.
-
registerAndStartNewCoordinators
void registerAndStartNewCoordinators(Collection<OperatorCoordinatorHolder> coordinators, org.apache.flink.runtime.concurrent.ComponentMainThreadExecutor mainThreadExecutor, int parallelism)
Register and start new operator coordinators.- Parameters:
coordinators- the operator coordinator to be registered.mainThreadExecutor- Executor for submitting work to the main thread.
-
-