use of org.openkilda.messaging.command.reroute.RerouteAffectedInactiveFlows in project open-kilda by telstra.
the class RerouteBolt method handleCommandMessage.
private void handleCommandMessage(CommandMessage commandMessage) {
CommandData commandData = commandMessage.getData();
String correlationId = getCommandContext().getCorrelationId();
if (commandData instanceof RerouteAffectedFlows) {
rerouteService.rerouteAffectedFlows(this, correlationId, (RerouteAffectedFlows) commandData);
} else if (commandData instanceof RerouteAffectedInactiveFlows) {
rerouteService.rerouteInactiveAffectedFlows(this, correlationId, ((RerouteAffectedInactiveFlows) commandData).getSwitchId());
} else if (commandData instanceof RerouteInactiveFlows) {
rerouteService.rerouteInactiveFlows(this, correlationId, (RerouteInactiveFlows) commandData);
} else if (commandData instanceof FlowRerouteRequest) {
rerouteService.processRerouteRequest(this, correlationId, (FlowRerouteRequest) commandData);
} else if (commandData instanceof YFlowRerouteRequest) {
rerouteService.processRerouteRequest(this, correlationId, (YFlowRerouteRequest) commandData);
} else {
unhandledInput(getCurrentTuple());
}
}
Aggregations