Search in sources :

Example 1 with FlowMirrorPointsDumpRequest

use of org.openkilda.messaging.nbtopology.request.FlowMirrorPointsDumpRequest in project open-kilda by telstra.

the class FlowServiceImpl method getFlowMirrorPoints.

@Override
public CompletableFuture<FlowMirrorPointsResponseV2> getFlowMirrorPoints(String flowId) {
    logger.info("Processing flow mirror point getting for flow {}", flowId);
    final String correlationId = RequestCorrelationId.getId();
    FlowMirrorPointsDumpRequest request = new FlowMirrorPointsDumpRequest(flowId);
    CommandMessage command = new CommandMessage(request, System.currentTimeMillis(), correlationId);
    return messagingChannel.sendAndGet(nbworkerTopic, command).thenApply(FlowMirrorPointsDumpResponse.class::cast).thenApply(flowMapper::toFlowMirrorPointsResponseV2);
}
Also used : FlowMirrorPointsDumpRequest(org.openkilda.messaging.nbtopology.request.FlowMirrorPointsDumpRequest) CommandMessage(org.openkilda.messaging.command.CommandMessage)

Aggregations

CommandMessage (org.openkilda.messaging.command.CommandMessage)1 FlowMirrorPointsDumpRequest (org.openkilda.messaging.nbtopology.request.FlowMirrorPointsDumpRequest)1