Interface TaskOperatorEventGateway
-
- All Known Implementing Classes:
RpcTaskOperatorEventGateway
public interface TaskOperatorEventGatewayGateway to send anOperatorEventorCoordinationRequestfrom a Task to theOperatorCoordinatorJobManager side.This is the first step in the chain of sending Operator Events and Requests 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.
OperatorEventGatewaytakes the event, enriches the event with theOperatorID, and forwards it to:TaskOperatorEventGatewayenriches the event with theExecutionAttemptIDand forwards it to the:JobMasterOperatorEventGatewaywhich is RPC interface from the TaskManager to the JobManager.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsendOperatorEventToCoordinator(OperatorID operator, org.apache.flink.util.SerializedValue<OperatorEvent> event)Sends an event from the operator (identified by the given operator ID) to the operator coordinator (identified by the same ID).CompletableFuture<CoordinationResponse>sendRequestToCoordinator(OperatorID operator, org.apache.flink.util.SerializedValue<CoordinationRequest> request)Sends a request from current operator to a specified operator coordinator which is identified by the given operator ID and return the response.
-
-
-
Method Detail
-
sendOperatorEventToCoordinator
void sendOperatorEventToCoordinator(OperatorID operator, org.apache.flink.util.SerializedValue<OperatorEvent> event)
Sends an event from the operator (identified by the given operator ID) to the operator coordinator (identified by the same ID).
-
sendRequestToCoordinator
CompletableFuture<CoordinationResponse> sendRequestToCoordinator(OperatorID operator, org.apache.flink.util.SerializedValue<CoordinationRequest> request)
Sends a request from current operator to a specified operator coordinator which is identified by the given operator ID and return the response.
-
-