Search in sources :

Example 1 with ControllerToSpeakerProxyBolt

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

the class FloodlightRouterTopology method declareControllerToSpeakerProxy.

private void declareControllerToSpeakerProxy(TopologyBuilder topology, String speakerTopicsSeed, String spoutId, String proxyBoltId, BoltDeclarer output) {
    ControllerToSpeakerProxyBolt proxy = new ControllerToSpeakerProxyBolt(speakerTopicsSeed, regions, Duration.ofSeconds(topologyConfig.getSwitchMappingRemoveDelay()));
    declareBolt(topology, proxy, proxyBoltId).shuffleGrouping(spoutId).allGrouping(SwitchMonitorBolt.BOLT_ID, SwitchMonitorBolt.STREAM_REGION_MAPPING_ID).allGrouping(ZooKeeperSpout.SPOUT_ID);
    output.shuffleGrouping(proxyBoltId);
}
Also used : ControllerToSpeakerProxyBolt(org.openkilda.wfm.topology.floodlightrouter.bolts.ControllerToSpeakerProxyBolt)

Example 2 with ControllerToSpeakerProxyBolt

use of org.openkilda.wfm.topology.floodlightrouter.bolts.ControllerToSpeakerProxyBolt 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

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