use of org.apache.storm.kafka.bolt.KafkaBolt in project open-kilda by telstra.
the class PingTopology method northboundEncoder.
private void northboundEncoder(TopologyBuilder topology) {
NorthboundEncoder bolt = new NorthboundEncoder();
declareBolt(topology, bolt, NorthboundEncoder.BOLT_ID).shuffleGrouping(FlowFetcher.BOLT_ID, FlowFetcher.STREAM_ON_DEMAND_RESPONSE_ID).shuffleGrouping(FlowFetcher.BOLT_ID, FlowFetcher.STREAM_ON_DEMAND_Y_FLOW_RESPONSE_ID).shuffleGrouping(OnDemandResultManager.BOLT_ID);
KafkaBolt output = buildKafkaBolt(topologyConfig.getKafkaNorthboundTopic());
declareBolt(topology, output, ComponentId.NORTHBOUND_OUTPUT.toString()).shuffleGrouping(NorthboundEncoder.BOLT_ID);
}
use of org.apache.storm.kafka.bolt.KafkaBolt in project open-kilda by telstra.
the class PingTopology method otsdbEncoder.
private void otsdbEncoder(TopologyBuilder topology) {
OtsdbEncoder bolt = new OtsdbEncoder();
declareBolt(topology, bolt, OtsdbEncoder.BOLT_ID).shuffleGrouping(StatsProducer.BOLT_ID);
KafkaBolt output = createKafkaBolt(topologyConfig.getKafkaOtsdbTopic());
declareBolt(topology, output, ComponentId.OTSDB_OUTPUT.toString()).shuffleGrouping(OtsdbEncoder.BOLT_ID);
}
use of org.apache.storm.kafka.bolt.KafkaBolt in project open-kilda by telstra.
the class PingTopology method speakerEncoder.
private void speakerEncoder(TopologyBuilder topology) {
SpeakerEncoder bolt = new SpeakerEncoder();
declareBolt(topology, bolt, SpeakerEncoder.BOLT_ID).shuffleGrouping(TimeoutManager.BOLT_ID, TimeoutManager.STREAM_REQUEST_ID);
KafkaBolt output = buildKafkaBolt(topologyConfig.getKafkaSpeakerFlowPingTopic());
declareBolt(topology, output, ComponentId.SPEAKER_OUTPUT.toString()).shuffleGrouping(SpeakerEncoder.BOLT_ID);
}
use of org.apache.storm.kafka.bolt.KafkaBolt in project open-kilda by telstra.
the class ControlTopology method outputSpeaker.
private void outputSpeaker(TopologyBuilder topology) {
KafkaBolt output = buildKafkaBoltWithRawObject(topologyConfig.getKafkaTopics().getServer42StormCommandsTopic());
declareBolt(topology, output, ComponentId.OUTPUT_SERVER42_CONTROL.toString()).shuffleGrouping(FlowHandler.BOLT_ID, FlowHandler.STREAM_CONTROL_COMMANDS_ID).shuffleGrouping(IslHandler.BOLT_ID, IslHandler.STREAM_CONTROL_COMMANDS_ID);
}
use of org.apache.storm.kafka.bolt.KafkaBolt in project open-kilda by telstra.
the class IslLatencyTopology method createOpenTsdbBolt.
private void createOpenTsdbBolt(TopologyBuilder builder) {
String openTsdbTopic = topologyConfig.getKafkaOtsdbTopic();
KafkaBolt openTsdbBolt = createKafkaBolt(openTsdbTopic);
declareBolt(builder, openTsdbBolt, ISL_LATENCY_OTSDB_BOLT_ID).shuffleGrouping(ISL_STATS_BOLT_ID);
}
Aggregations