Search in sources :

Example 1 with SpeakerEncoder

use of org.openkilda.wfm.topology.ping.bolt.SpeakerEncoder in project open-kilda by telstra.

the class PingTopology method speakerEncoder.

private void speakerEncoder(TopologyBuilder topology) {
    SpeakerEncoder bolt = new SpeakerEncoder();
    declareBolt(topology, bolt, SpeakerEncoder.BOLT_ID).shuffleGrouping(TimeoutManager.BOLT_ID, TimeoutManager.STREAM_REQUEST_ID);
    KafkaBolt output = buildKafkaBolt(topologyConfig.getKafkaSpeakerFlowPingTopic());
    declareBolt(topology, output, ComponentId.SPEAKER_OUTPUT.toString()).shuffleGrouping(SpeakerEncoder.BOLT_ID);
}
Also used : SpeakerEncoder(org.openkilda.wfm.topology.ping.bolt.SpeakerEncoder) KafkaBolt(org.apache.storm.kafka.bolt.KafkaBolt)

Aggregations

KafkaBolt (org.apache.storm.kafka.bolt.KafkaBolt)1 SpeakerEncoder (org.openkilda.wfm.topology.ping.bolt.SpeakerEncoder)1