use of org.openkilda.messaging.command.switches.SyncRulesRequest in project open-kilda by telstra.
the class SwitchServiceImpl method syncRules.
@Override
public SyncRulesOutput syncRules(String switchId, String correlationId) {
SyncRulesRequest request = new SyncRulesRequest(switchId);
CommandWithReplyToMessage commandMessage = new CommandWithReplyToMessage(request, System.currentTimeMillis(), correlationId, Destination.TOPOLOGY_ENGINE, northboundTopic);
messageProducer.send(topoEngTopic, commandMessage);
Message message = messageConsumer.poll(correlationId);
SyncRulesResponse response = (SyncRulesResponse) validateInfoMessage(commandMessage, message, correlationId);
return switchMapper.toSuncRulesOutput(response);
}
Aggregations