use of org.openkilda.messaging.command.flow.PeriodicPingCommand in project open-kilda by telstra.
the class YFlowRerouteHubBolt method sendPeriodicPingNotification.
@Override
public void sendPeriodicPingNotification(String flowId, boolean enabled) {
PeriodicPingCommand payload = new PeriodicPingCommand(flowId, enabled);
Message message = new CommandMessage(payload, getCommandContext().getCreateTime(), getCommandContext().getCorrelationId());
emitWithContext(Stream.HUB_TO_PING_SENDER.name(), getCurrentTuple(), new Values(currentKey, message));
}
use of org.openkilda.messaging.command.flow.PeriodicPingCommand in project open-kilda by telstra.
the class FlowPatchBolt method emitPeriodicPingUpdate.
@Override
public void emitPeriodicPingUpdate(String flowId, boolean enabled) {
CommandMessage command = new CommandMessage(new PeriodicPingCommand(flowId, enabled), System.currentTimeMillis(), getCorrelationId());
getOutput().emit(StreamType.PING.toString(), getCurrentTuple(), new Values(command, getCommandContext()));
}
use of org.openkilda.messaging.command.flow.PeriodicPingCommand in project open-kilda by telstra.
the class FlowDeleteHubBolt method sendPeriodicPingNotification.
@Override
public void sendPeriodicPingNotification(String flowId, boolean enabled) {
PeriodicPingCommand payload = new PeriodicPingCommand(flowId, enabled);
Message message = new CommandMessage(payload, getCommandContext().getCreateTime(), getCommandContext().getCorrelationId());
emitWithContext(Stream.HUB_TO_PING_SENDER.name(), getCurrentTuple(), new Values(currentKey, message));
}
use of org.openkilda.messaging.command.flow.PeriodicPingCommand in project open-kilda by telstra.
the class FlowRerouteHubBolt method sendPeriodicPingNotification.
@Override
public void sendPeriodicPingNotification(String flowId, boolean enabled) {
PeriodicPingCommand payload = new PeriodicPingCommand(flowId, enabled);
Message message = new CommandMessage(payload, getCommandContext().getCreateTime(), getCommandContext().getCorrelationId());
emitWithContext(Stream.HUB_TO_PING_SENDER.name(), getCurrentTuple(), new Values(currentKey, message));
}
use of org.openkilda.messaging.command.flow.PeriodicPingCommand in project open-kilda by telstra.
the class FlowCreateHubBolt method sendPeriodicPingNotification.
@Override
public void sendPeriodicPingNotification(String flowId, boolean enabled) {
PeriodicPingCommand payload = new PeriodicPingCommand(flowId, enabled);
Message message = new CommandMessage(payload, getCommandContext().getCreateTime(), getCommandContext().getCorrelationId());
emitWithContext(Stream.HUB_TO_PING_SENDER.name(), getCurrentTuple(), new Values(currentKey, message));
}
Aggregations