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);
}
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);
}
Aggregations