Search in sources :

Example 11 with RerouteResultInfoData

use of org.openkilda.messaging.info.reroute.RerouteResultInfoData in project open-kilda by telstra.

the class FlowRerouteHubBolt method sendRerouteResultStatus.

@Override
public void sendRerouteResultStatus(String flowId, RerouteError rerouteError, String correlationId) {
    RerouteResultInfoData rerouteResult = RerouteResultInfoData.builder().flowId(flowId).success(rerouteError == null).rerouteError(rerouteError).build();
    Message message = new InfoMessage(rerouteResult, System.currentTimeMillis(), correlationId);
    emitWithContext(Stream.HUB_TO_REROUTE_RESPONSE_SENDER.name(), getCurrentTuple(), new Values(currentKey, message));
}
Also used : InfoMessage(org.openkilda.messaging.info.InfoMessage) Message(org.openkilda.messaging.Message) CommandMessage(org.openkilda.messaging.command.CommandMessage) InfoMessage(org.openkilda.messaging.info.InfoMessage) Values(org.apache.storm.tuple.Values) RerouteResultInfoData(org.openkilda.messaging.info.reroute.RerouteResultInfoData)

Aggregations

RerouteResultInfoData (org.openkilda.messaging.info.reroute.RerouteResultInfoData)11 Test (org.junit.Test)6 FlowThrottlingData (org.openkilda.wfm.topology.reroute.model.FlowThrottlingData)5 RerouteQueue (org.openkilda.wfm.topology.reroute.model.RerouteQueue)5 FlowRerouteRequest (org.openkilda.messaging.command.flow.FlowRerouteRequest)4 YFlowRerouteRequest (org.openkilda.messaging.command.yflow.YFlowRerouteRequest)4 Values (org.apache.storm.tuple.Values)3 InfoMessage (org.openkilda.messaging.info.InfoMessage)3 SpeakerRequestError (org.openkilda.messaging.info.reroute.error.SpeakerRequestError)3 Message (org.openkilda.messaging.Message)2 CommandMessage (org.openkilda.messaging.command.CommandMessage)2 PathSwapResult (org.openkilda.messaging.info.reroute.PathSwapResult)2 IslEndpoint (org.openkilda.model.IslEndpoint)2 FlowSegmentRequest (org.openkilda.floodlight.api.request.FlowSegmentRequest)1 MessageData (org.openkilda.messaging.MessageData)1 FlowPathSwapRequest (org.openkilda.messaging.command.flow.FlowPathSwapRequest)1 InfoData (org.openkilda.messaging.info.InfoData)1 SwitchStateChanged (org.openkilda.messaging.info.reroute.SwitchStateChanged)1 RerouteInProgressError (org.openkilda.messaging.info.reroute.error.RerouteInProgressError)1 Flow (org.openkilda.model.Flow)1