Search in sources :

Example 1 with RerouteEncoder

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

the class NetworkTopology method outputReroute.

private void outputReroute(TopologyBuilder topology) {
    RerouteEncoder bolt = new RerouteEncoder();
    declareBolt(topology, bolt, RerouteEncoder.BOLT_ID).shuffleGrouping(IslHandler.BOLT_ID, IslHandler.STREAM_REROUTE_ID).shuffleGrouping(SwitchHandler.BOLT_ID, SwitchHandler.STREAM_REROUTE_ID);
    KafkaBolt output = buildKafkaBolt(kafkaTopics.getTopoRerouteTopic());
    declareBolt(topology, output, ComponentId.REROUTE_OUTPUT.toString()).shuffleGrouping(RerouteEncoder.BOLT_ID);
}
Also used : RerouteEncoder(org.openkilda.wfm.topology.network.storm.bolt.RerouteEncoder) KafkaBolt(org.apache.storm.kafka.bolt.KafkaBolt)

Aggregations

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