use of org.openkilda.wfm.topology.network.storm.bolt.sw.command.SwitchHistoryCommand in project open-kilda by telstra.
the class NetworkPersistedStateImportHandler method switchAddWithHistory.
/**
* Emit new history fact about switch.
* @param historyFacts entity
*/
public void switchAddWithHistory(HistoryFacts historyFacts) {
SwitchHistoryCommand command = new SwitchHistoryCommand(historyFacts);
SwitchId switchId = command.getDatapath();
CommandContext context = getCommandContext().fork(switchId.toOtsdFormat());
getOutput().emit(new Values(switchId, command, context));
}
Aggregations