use of org.openkilda.floodlight.command.group.GroupRemoveCommand in project open-kilda by telstra.
the class RecordHandler method doDeleteGroupRequest.
private void doDeleteGroupRequest(CommandMessage message) {
SwitchId switchId = ((DeleteGroupRequest) message.getData()).getSwitchId();
GroupId groupId = ((DeleteGroupRequest) message.getData()).getGroupId();
logger.debug("Delete group '{}' for switch '{}'", groupId, switchId);
handleSpeakerCommand(new GroupRemoveCommand(new MessageContext(message), switchId, groupId));
DeleteGroupResponse response = new DeleteGroupResponse(true);
String correlationId = message.getCorrelationId();
InfoMessage infoMessage = new InfoMessage(response, System.currentTimeMillis(), correlationId);
getKafkaProducer().sendMessageAndTrack(context.getKafkaSwitchManagerTopic(), correlationId, infoMessage);
}
Aggregations