Search in sources :

Example 1 with RerouteEncoder

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

the class FlowMonitoringTopology method outputReroute.

private void outputReroute(TopologyBuilder topology) {
    RerouteEncoder bolt = new RerouteEncoder();
    declareBolt(topology, bolt, RerouteEncoder.BOLT_ID).shuffleGrouping(ComponentId.ACTION_BOLT.name());
    KafkaBolt output = buildKafkaBolt(getConfig().getKafkaTopoRerouteTopic());
    declareBolt(topology, output, ComponentId.REROUTE_BOLT.name()).shuffleGrouping(RerouteEncoder.BOLT_ID);
}
Also used : RerouteEncoder(org.openkilda.wfm.topology.flowmonitoring.bolt.RerouteEncoder) KafkaBolt(org.apache.storm.kafka.bolt.KafkaBolt)

Aggregations

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