Search in sources :

Example 1 with FeatureToggleRequest

use of org.openkilda.messaging.command.system.FeatureToggleRequest in project open-kilda by telstra.

the class FeatureTogglesServiceImpl method toggleFeatures.

@Override
public void toggleFeatures(FeatureTogglePayload dto) {
    LOGGER.debug("Processing request to toggle features, new properties are {}", dto);
    FeatureToggleRequest request = mapper.toRequest(dto);
    CommandMessage message = new CommandMessage(request, System.currentTimeMillis(), UUID.randomUUID().toString(), Destination.TOPOLOGY_ENGINE);
    messageProducer.send(topoEngTopic, message);
}
Also used : FeatureToggleRequest(org.openkilda.messaging.command.system.FeatureToggleRequest) CommandMessage(org.openkilda.messaging.command.CommandMessage)

Aggregations

CommandMessage (org.openkilda.messaging.command.CommandMessage)1 FeatureToggleRequest (org.openkilda.messaging.command.system.FeatureToggleRequest)1