Search in sources :

Example 1 with NorthboundEncoder

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

the class NetworkTopology method outputNorthbound.

private void outputNorthbound(TopologyBuilder topology) {
    NorthboundEncoder bolt = new NorthboundEncoder();
    declareBolt(topology, bolt, NorthboundEncoder.BOLT_ID).shuffleGrouping(PortHandler.BOLT_ID, PortHandler.STREAM_NORTHBOUND_ID);
    KafkaBolt kafkaNorthboundBolt = buildKafkaBolt(kafkaTopics.getNorthboundTopic());
    declareBolt(topology, kafkaNorthboundBolt, ComponentId.NB_OUTPUT.toString()).shuffleGrouping(NorthboundEncoder.BOLT_ID);
}
Also used : NorthboundEncoder(org.openkilda.wfm.topology.network.storm.bolt.NorthboundEncoder) KafkaBolt(org.apache.storm.kafka.bolt.KafkaBolt)

Aggregations

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