Search in sources :

Example 1 with NorthboundEncoder

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

the class PingTopology method northboundEncoder.

private void northboundEncoder(TopologyBuilder topology) {
    NorthboundEncoder bolt = new NorthboundEncoder();
    declareBolt(topology, bolt, NorthboundEncoder.BOLT_ID).shuffleGrouping(FlowFetcher.BOLT_ID, FlowFetcher.STREAM_ON_DEMAND_RESPONSE_ID).shuffleGrouping(FlowFetcher.BOLT_ID, FlowFetcher.STREAM_ON_DEMAND_Y_FLOW_RESPONSE_ID).shuffleGrouping(OnDemandResultManager.BOLT_ID);
    KafkaBolt output = buildKafkaBolt(topologyConfig.getKafkaNorthboundTopic());
    declareBolt(topology, output, ComponentId.NORTHBOUND_OUTPUT.toString()).shuffleGrouping(NorthboundEncoder.BOLT_ID);
}
Also used : NorthboundEncoder(org.openkilda.wfm.topology.ping.bolt.NorthboundEncoder) KafkaBolt(org.apache.storm.kafka.bolt.KafkaBolt)

Aggregations

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