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);
}
Aggregations