Interface JobMasterOperatorEventGateway
- All Known Subinterfaces:
JobMasterGateway
- All Known Implementing Classes:
JobMaster
public interface JobMasterOperatorEventGateway
Gateway to send an
OperatorEvent or CoordinationRequest from the Task Manager to
to the OperatorCoordinator on the JobManager side.
This is the first step in the chain of sending Operator Events from Operator to Coordinator. Each layer adds further context, so that the inner layers do not need to know about the complete context, which keeps dependencies small and makes testing easier.
OperatorEventGateway takes the event, enriches the event with the OperatorID, and
forwards it to:TaskOperatorEventGateway enriches the event with the ExecutionAttemptID and
forwards it to the:JobMasterOperatorEventGateway which is RPC interface from the TaskManager to the JobManager.-
Method Summary
Modifier and TypeMethodDescriptionsendOperatorEventToCoordinator(ExecutionAttemptID task, OperatorID operatorID, org.apache.flink.util.SerializedValue<OperatorEvent> event) sendRequestToCoordinator(OperatorID operatorID, org.apache.flink.util.SerializedValue<CoordinationRequest> request)
-
Method Details
-
sendOperatorEventToCoordinator
CompletableFuture<Acknowledge> sendOperatorEventToCoordinator(ExecutionAttemptID task, OperatorID operatorID, org.apache.flink.util.SerializedValue<OperatorEvent> event) -
sendRequestToCoordinator
CompletableFuture<CoordinationResponse> sendRequestToCoordinator(OperatorID operatorID, org.apache.flink.util.SerializedValue<CoordinationRequest> request)
-