Interface CoordinationRequestGateway

All Known Implementing Classes:
MiniClusterJobClient

public interface CoordinationRequestGateway
Client interface which sends out a CoordinationRequest and expects for a CoordinationResponse from a OperatorCoordinator.
  • Method Details

    • sendCoordinationRequest

      CompletableFuture<CoordinationResponse> sendCoordinationRequest(String operatorUid, CoordinationRequest request)
      Send out a request to a specified coordinator and return the response.

      On the client side, a unique operatorUid must be defined to identify an operator. Otherwise, the query cannot be executed correctly. Note that we use operatorUid instead of operatorID because the latter is an internal runtime concept that cannot be recognized by the client.

      Parameters:
      operatorUid - specifies which coordinator to receive the request
      request - the request to send
      Returns:
      the response from the coordinator