Interface OperatorCoordinatorHandler
- All Known Implementing Classes:
DefaultOperatorCoordinatorHandler
public interface OperatorCoordinatorHandler
Handler for the
OperatorCoordinators.-
Method Summary
Modifier and TypeMethodDescriptiondeliverCoordinationRequestToCoordinator(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.voidDispose 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.voidStart all operator coordinators.
-
Method Details
-
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.
-