Search in sources :

Example 1 with ControllerToSpeakerSharedProxyBolt

use of org.openkilda.wfm.topology.floodlightrouter.bolts.ControllerToSpeakerSharedProxyBolt in project open-kilda by telstra.

the class FloodlightRouterTopology method controllerToSpeaker.

private void controllerToSpeaker(TopologyBuilder topology, TopologyOutput output) {
    BoltDeclarer kafkaProducer = output.getKafkaGenericOutput();
    declareKafkaSpout(topology, kafkaTopics.getSpeakerTopic(), ComponentType.SPEAKER_KAFKA_SPOUT);
    ControllerToSpeakerProxyBolt proxy = new ControllerToSpeakerSharedProxyBolt(kafkaTopics.getSpeakerRegionTopic(), regions, kafkaTopics, Duration.ofSeconds(topologyConfig.getSwitchMappingRemoveDelay()));
    declareBolt(topology, proxy, ComponentType.SPEAKER_REQUEST_BOLT).shuffleGrouping(ComponentType.SPEAKER_KAFKA_SPOUT).allGrouping(SwitchMonitorBolt.BOLT_ID, SwitchMonitorBolt.STREAM_REGION_MAPPING_ID).allGrouping(ZooKeeperSpout.SPOUT_ID);
    kafkaProducer.shuffleGrouping(ComponentType.SPEAKER_REQUEST_BOLT).shuffleGrouping(ComponentType.SPEAKER_REQUEST_BOLT, Stream.KILDA_SWITCH_MANAGER).shuffleGrouping(ComponentType.SPEAKER_REQUEST_BOLT, Stream.NORTHBOUND_REPLY);
}
Also used : ControllerToSpeakerSharedProxyBolt(org.openkilda.wfm.topology.floodlightrouter.bolts.ControllerToSpeakerSharedProxyBolt) BoltDeclarer(org.apache.storm.topology.BoltDeclarer) ControllerToSpeakerProxyBolt(org.openkilda.wfm.topology.floodlightrouter.bolts.ControllerToSpeakerProxyBolt)

Aggregations

BoltDeclarer (org.apache.storm.topology.BoltDeclarer)1 ControllerToSpeakerProxyBolt (org.openkilda.wfm.topology.floodlightrouter.bolts.ControllerToSpeakerProxyBolt)1 ControllerToSpeakerSharedProxyBolt (org.openkilda.wfm.topology.floodlightrouter.bolts.ControllerToSpeakerSharedProxyBolt)1