Search in sources :

Example 1 with SpeakerRulesEncoder

use of org.openkilda.wfm.topology.network.storm.bolt.SpeakerRulesEncoder in project open-kilda by telstra.

the class NetworkTopology method outputSpeakerRules.

private void outputSpeakerRules(TopologyBuilder topology) {
    SpeakerRulesEncoder encoderRules = new SpeakerRulesEncoder();
    declareBolt(topology, encoderRules, SpeakerRulesEncoder.BOLT_ID).shuffleGrouping(SpeakerRulesWorker.BOLT_ID);
    KafkaBolt outputRules = buildKafkaBolt(kafkaTopics.getSpeakerTopic());
    declareBolt(topology, outputRules, ComponentId.SPEAKER_RULES_OUTPUT.toString()).shuffleGrouping(SpeakerRulesEncoder.BOLT_ID);
}
Also used : SpeakerRulesEncoder(org.openkilda.wfm.topology.network.storm.bolt.SpeakerRulesEncoder) KafkaBolt(org.apache.storm.kafka.bolt.KafkaBolt)

Aggregations

KafkaBolt (org.apache.storm.kafka.bolt.KafkaBolt)1 SpeakerRulesEncoder (org.openkilda.wfm.topology.network.storm.bolt.SpeakerRulesEncoder)1