use of org.apache.storm.kafka.bolt.KafkaBolt in project open-kilda by telstra.
the class NbWorkerTopology method metrics.
private void metrics(TopologyBuilder topologyBuilder) {
String openTsdbTopic = topologyConfig.getKafkaTopics().getOtsdbTopic();
KafkaBolt kafkaBolt = createKafkaBolt(openTsdbTopic);
topologyBuilder.setBolt(METRICS_BOLT, kafkaBolt).shuffleGrouping(FLOWS_BOLT_NAME, StreamType.TO_METRICS_BOLT.name()).shuffleGrouping(LINKS_BOLT_NAME, StreamType.TO_METRICS_BOLT.name()).shuffleGrouping(SWITCHES_BOLT_NAME, StreamType.TO_METRICS_BOLT.name()).shuffleGrouping(HISTORY_BOLT_NAME, StreamType.TO_METRICS_BOLT.name());
}
use of org.apache.storm.kafka.bolt.KafkaBolt 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);
}
use of org.apache.storm.kafka.bolt.KafkaBolt 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);
}
use of org.apache.storm.kafka.bolt.KafkaBolt in project open-kilda by telstra.
the class NetworkTopology method outputReroute.
private void outputReroute(TopologyBuilder topology) {
RerouteEncoder bolt = new RerouteEncoder();
declareBolt(topology, bolt, RerouteEncoder.BOLT_ID).shuffleGrouping(IslHandler.BOLT_ID, IslHandler.STREAM_REROUTE_ID).shuffleGrouping(SwitchHandler.BOLT_ID, SwitchHandler.STREAM_REROUTE_ID);
KafkaBolt output = buildKafkaBolt(kafkaTopics.getTopoRerouteTopic());
declareBolt(topology, output, ComponentId.REROUTE_OUTPUT.toString()).shuffleGrouping(RerouteEncoder.BOLT_ID);
}
use of org.apache.storm.kafka.bolt.KafkaBolt in project open-kilda by telstra.
the class PingTopology method flowStatusEncoder.
private void flowStatusEncoder(TopologyBuilder topology) {
FlowStatusEncoder bolt = new FlowStatusEncoder();
declareBolt(topology, bolt, FlowStatusEncoder.BOLT_ID).shuffleGrouping(FailReporter.BOLT_ID);
KafkaBolt output = buildKafkaBolt(topologyConfig.getKafkaFlowStatusTopic());
declareBolt(topology, output, ComponentId.FLOW_STATUS_OUTPUT.toString()).shuffleGrouping(FlowStatusEncoder.BOLT_ID);
}
Aggregations