Search in sources :

Example 1 with ActivateFlowMonitoringInfoData

use of org.openkilda.server42.control.messaging.flowrtt.ActivateFlowMonitoringInfoData in project open-kilda by telstra.

the class YFlowCreateHubBolt method sendActivateFlowMonitoring.

@Override
public void sendActivateFlowMonitoring(@NonNull RequestedFlow flow) {
    ActivateFlowMonitoringInfoData payload = RequestedFlowMapper.INSTANCE.toActivateFlowMonitoringInfoData(flow);
    Message message = new InfoMessage(payload, getCommandContext().getCreateTime(), getCommandContext().getCorrelationId());
    emitWithContext(HUB_TO_SERVER42_CONTROL_TOPOLOGY_SENDER.name(), getCurrentTuple(), new Values(flow.getFlowId(), message));
}
Also used : InfoMessage(org.openkilda.messaging.info.InfoMessage) CommandMessage(org.openkilda.messaging.command.CommandMessage) Message(org.openkilda.messaging.Message) InfoMessage(org.openkilda.messaging.info.InfoMessage) Values(org.apache.storm.tuple.Values) ActivateFlowMonitoringInfoData(org.openkilda.server42.control.messaging.flowrtt.ActivateFlowMonitoringInfoData)

Example 2 with ActivateFlowMonitoringInfoData

use of org.openkilda.server42.control.messaging.flowrtt.ActivateFlowMonitoringInfoData in project open-kilda by telstra.

the class YFlowUpdateHubBolt method sendActivateFlowMonitoring.

@Override
public void sendActivateFlowMonitoring(@NonNull RequestedFlow flow) {
    ActivateFlowMonitoringInfoData payload = RequestedFlowMapper.INSTANCE.toActivateFlowMonitoringInfoData(flow);
    Message message = new InfoMessage(payload, getCommandContext().getCreateTime(), getCommandContext().getCorrelationId());
    emitWithContext(HUB_TO_SERVER42_CONTROL_TOPOLOGY_SENDER.name(), getCurrentTuple(), new Values(flow.getFlowId(), message));
}
Also used : InfoMessage(org.openkilda.messaging.info.InfoMessage) CommandMessage(org.openkilda.messaging.command.CommandMessage) Message(org.openkilda.messaging.Message) ErrorMessage(org.openkilda.messaging.error.ErrorMessage) InfoMessage(org.openkilda.messaging.info.InfoMessage) Values(org.apache.storm.tuple.Values) ActivateFlowMonitoringInfoData(org.openkilda.server42.control.messaging.flowrtt.ActivateFlowMonitoringInfoData)

Example 3 with ActivateFlowMonitoringInfoData

use of org.openkilda.server42.control.messaging.flowrtt.ActivateFlowMonitoringInfoData in project open-kilda by telstra.

the class YFlowRerouteHubBolt method sendActivateFlowMonitoring.

@Override
public void sendActivateFlowMonitoring(@NonNull RequestedFlow flow) {
    ActivateFlowMonitoringInfoData payload = RequestedFlowMapper.INSTANCE.toActivateFlowMonitoringInfoData(flow);
    Message message = new InfoMessage(payload, getCommandContext().getCreateTime(), getCommandContext().getCorrelationId());
    emitWithContext(HUB_TO_SERVER42_CONTROL_TOPOLOGY_SENDER.name(), getCurrentTuple(), new Values(flow.getFlowId(), message));
}
Also used : InfoMessage(org.openkilda.messaging.info.InfoMessage) CommandMessage(org.openkilda.messaging.command.CommandMessage) Message(org.openkilda.messaging.Message) InfoMessage(org.openkilda.messaging.info.InfoMessage) Values(org.apache.storm.tuple.Values) ActivateFlowMonitoringInfoData(org.openkilda.server42.control.messaging.flowrtt.ActivateFlowMonitoringInfoData)

Example 4 with ActivateFlowMonitoringInfoData

use of org.openkilda.server42.control.messaging.flowrtt.ActivateFlowMonitoringInfoData in project open-kilda by telstra.

the class FlowUpdateHubBolt method sendActivateFlowMonitoring.

@Override
public void sendActivateFlowMonitoring(@NonNull RequestedFlow flow) {
    ActivateFlowMonitoringInfoData payload = RequestedFlowMapper.INSTANCE.toActivateFlowMonitoringInfoData(flow);
    Message message = new InfoMessage(payload, getCommandContext().getCreateTime(), getCommandContext().getCorrelationId());
    emitWithContext(HUB_TO_SERVER42_CONTROL_TOPOLOGY_SENDER.name(), getCurrentTuple(), new Values(flow.getFlowId(), message));
}
Also used : InfoMessage(org.openkilda.messaging.info.InfoMessage) CommandMessage(org.openkilda.messaging.command.CommandMessage) Message(org.openkilda.messaging.Message) InfoMessage(org.openkilda.messaging.info.InfoMessage) Values(org.apache.storm.tuple.Values) ActivateFlowMonitoringInfoData(org.openkilda.server42.control.messaging.flowrtt.ActivateFlowMonitoringInfoData)

Example 5 with ActivateFlowMonitoringInfoData

use of org.openkilda.server42.control.messaging.flowrtt.ActivateFlowMonitoringInfoData in project open-kilda by telstra.

the class FlowCreateHubBolt method sendActivateFlowMonitoring.

@Override
public void sendActivateFlowMonitoring(@NonNull RequestedFlow flow) {
    ActivateFlowMonitoringInfoData payload = RequestedFlowMapper.INSTANCE.toActivateFlowMonitoringInfoData(flow);
    Message message = new InfoMessage(payload, getCommandContext().getCreateTime(), getCommandContext().getCorrelationId());
    emitWithContext(HUB_TO_SERVER42_CONTROL_TOPOLOGY_SENDER.name(), getCurrentTuple(), new Values(flow.getFlowId(), message));
}
Also used : InfoMessage(org.openkilda.messaging.info.InfoMessage) CommandMessage(org.openkilda.messaging.command.CommandMessage) Message(org.openkilda.messaging.Message) InfoMessage(org.openkilda.messaging.info.InfoMessage) Values(org.apache.storm.tuple.Values) ActivateFlowMonitoringInfoData(org.openkilda.server42.control.messaging.flowrtt.ActivateFlowMonitoringInfoData)

Aggregations

ActivateFlowMonitoringInfoData (org.openkilda.server42.control.messaging.flowrtt.ActivateFlowMonitoringInfoData)6 Values (org.apache.storm.tuple.Values)5 Message (org.openkilda.messaging.Message)5 CommandMessage (org.openkilda.messaging.command.CommandMessage)5 InfoMessage (org.openkilda.messaging.info.InfoMessage)5 ErrorMessage (org.openkilda.messaging.error.ErrorMessage)1 FeatureTogglesUpdate (org.openkilda.messaging.info.event.FeatureTogglesUpdate)1 SwitchId (org.openkilda.model.SwitchId)1 ActivateFlowMonitoringOnSwitchInfoData (org.openkilda.server42.control.messaging.flowrtt.ActivateFlowMonitoringOnSwitchInfoData)1 DeactivateFlowMonitoringInfoData (org.openkilda.server42.control.messaging.flowrtt.DeactivateFlowMonitoringInfoData)1 DeactivateFlowMonitoringOnSwitchInfoData (org.openkilda.server42.control.messaging.flowrtt.DeactivateFlowMonitoringOnSwitchInfoData)1 ActivateIslMonitoringOnSwitchInfoData (org.openkilda.server42.control.messaging.islrtt.ActivateIslMonitoringOnSwitchInfoData)1 DeactivateIslMonitoringOnSwitchInfoData (org.openkilda.server42.control.messaging.islrtt.DeactivateIslMonitoringOnSwitchInfoData)1 ActivateFlowMonitoringCommand (org.openkilda.server42.control.topology.storm.bolt.flow.command.ActivateFlowMonitoringCommand)1 DeactivateFlowMonitoringCommand (org.openkilda.server42.control.topology.storm.bolt.flow.command.DeactivateFlowMonitoringCommand)1