Search in sources :

Example 1 with SwitchManagerEncoder

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

the class NetworkTopology method outputSwitchManager.

private void outputSwitchManager(TopologyBuilder topology) {
    SwitchManagerEncoder bolt = new SwitchManagerEncoder();
    declareBolt(topology, bolt, SwitchManagerEncoder.BOLT_ID).shuffleGrouping(SwitchManagerWorker.BOLT_ID);
    KafkaBolt output = buildKafkaBolt(kafkaTopics.getTopoSwitchManagerNetworkTopic());
    declareBolt(topology, output, ComponentId.SWMANAGER_OUTPUT.toString()).shuffleGrouping(SwitchManagerEncoder.BOLT_ID);
}
Also used : SwitchManagerEncoder(org.openkilda.wfm.topology.network.storm.bolt.SwitchManagerEncoder) KafkaBolt(org.apache.storm.kafka.bolt.KafkaBolt)

Aggregations

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