Class RpcTaskOperatorEventGateway
java.lang.Object
org.apache.flink.runtime.taskexecutor.rpc.RpcTaskOperatorEventGateway
- All Implemented Interfaces:
TaskOperatorEventGateway
An OperatorEventSender that calls the RPC gateway
JobMasterOperatorEventGateway to send
the messages to the coordinator.-
Constructor Summary
ConstructorsConstructorDescriptionRpcTaskOperatorEventGateway(JobMasterOperatorEventGateway rpcGateway, ExecutionAttemptID taskExecutionId, Consumer<Throwable> errorHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoidsendOperatorEventToCoordinator(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(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.
-
Constructor Details
-
RpcTaskOperatorEventGateway
public RpcTaskOperatorEventGateway(JobMasterOperatorEventGateway rpcGateway, ExecutionAttemptID taskExecutionId, Consumer<Throwable> errorHandler)
-
-
Method Details
-
sendOperatorEventToCoordinator
public void sendOperatorEventToCoordinator(OperatorID operator, org.apache.flink.util.SerializedValue<OperatorEvent> event) Description copied from interface:TaskOperatorEventGatewaySends an event from the operator (identified by the given operator ID) to the operator coordinator (identified by the same ID).- Specified by:
sendOperatorEventToCoordinatorin interfaceTaskOperatorEventGateway
-
sendRequestToCoordinator
public CompletableFuture<CoordinationResponse> sendRequestToCoordinator(OperatorID operator, org.apache.flink.util.SerializedValue<CoordinationRequest> request) Description copied from interface:TaskOperatorEventGatewaySends a request from current operator to a specified operator coordinator which is identified by the given operator ID and return the response.- Specified by:
sendRequestToCoordinatorin interfaceTaskOperatorEventGateway
-