use of org.openkilda.messaging.command.discovery.PortsCommandData in project open-kilda by telstra.
the class SwitchPortsSpout method nextTuple.
@Override
public void nextTuple() {
final long now = now();
if (now - lastTickTime > frequency) {
CommandData data = new PortsCommandData(REQUESTER);
logger.debug("emitting PortsCommandData: {}", data);
String correlationId = format("SwitchPortsSpout-%s", UUID.randomUUID().toString());
collector.emit(new Values(correlationId, data, correlationId));
if (now - lastTickTime > frequency * 2) {
logger.warn("long tick for PortsCommandData - {}ms", now - lastTickTime);
}
lastTickTime = now;
}
org.apache.storm.utils.Utils.sleep(1);
}
Aggregations