use of org.openkilda.messaging.nbtopology.request.FlowsDumpRequest in project open-kilda by telstra.
the class FlowServiceImpl method getAllFlows.
/**
* {@inheritDoc}
*/
@Override
public CompletableFuture<List<FlowResponsePayload>> getAllFlows() {
final String correlationId = RequestCorrelationId.getId();
logger.debug("Get flows request processing");
return handleGetAllFlowsRequest(new FlowsDumpRequest(), correlationId, flowMapper::toFlowResponseOutput);
}
use of org.openkilda.messaging.nbtopology.request.FlowsDumpRequest in project open-kilda by telstra.
the class FlowServiceImpl method getAllFlowsV2.
/**
* {@inheritDoc}
*/
@Override
public CompletableFuture<List<FlowResponseV2>> getAllFlowsV2(String status) {
final String correlationId = RequestCorrelationId.getId();
logger.debug("Get flows request processing");
FlowsDumpRequest data;
try {
data = new FlowsDumpRequest(status);
} catch (IllegalArgumentException e) {
logger.error("Can not parse arguments: {}", e.getMessage(), e);
throw new MessageException(correlationId, System.currentTimeMillis(), ErrorType.DATA_INVALID, e.getMessage(), "Can not parse arguments of the flow dump request");
}
return handleGetAllFlowsRequest(data, correlationId, flowMapper::toFlowResponseV2);
}
Aggregations