Search in sources :

Example 26 with KafkaBolt

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);
}
Also used : NorthboundEncoder(org.openkilda.wfm.topology.ping.bolt.NorthboundEncoder) KafkaBolt(org.apache.storm.kafka.bolt.KafkaBolt)

Example 27 with KafkaBolt

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);
}
Also used : OtsdbEncoder(org.openkilda.wfm.topology.ping.bolt.OtsdbEncoder) KafkaBolt(org.apache.storm.kafka.bolt.KafkaBolt)

Example 28 with KafkaBolt

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);
}
Also used : SpeakerEncoder(org.openkilda.wfm.topology.ping.bolt.SpeakerEncoder) KafkaBolt(org.apache.storm.kafka.bolt.KafkaBolt)

Example 29 with KafkaBolt

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);
}
Also used : KafkaBolt(org.apache.storm.kafka.bolt.KafkaBolt)

Example 30 with KafkaBolt

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);
}
Also used : KafkaBolt(org.apache.storm.kafka.bolt.KafkaBolt)

Aggregations

KafkaBolt (org.apache.storm.kafka.bolt.KafkaBolt)31 TopologyBuilder (org.apache.storm.topology.TopologyBuilder)5 KafkaSpout (org.apache.storm.kafka.spout.KafkaSpout)4 BoltDeclarer (org.apache.storm.topology.BoltDeclarer)3 CtrlBoltRef (org.openkilda.wfm.CtrlBoltRef)3 ArrayList (java.util.ArrayList)2 ZooKeeperBolt (org.openkilda.wfm.share.zk.ZooKeeperBolt)2 ZooKeeperSpout (org.openkilda.wfm.share.zk.ZooKeeperSpout)2 Properties (java.util.Properties)1 PathComputerConfig (org.openkilda.pce.PathComputerConfig)1 PersistenceManager (org.openkilda.persistence.PersistenceManager)1 RouteBolt (org.openkilda.wfm.ctrl.RouteBolt)1 CoordinatorBolt (org.openkilda.wfm.share.hubandspoke.CoordinatorBolt)1 CoordinatorSpout (org.openkilda.wfm.share.hubandspoke.CoordinatorSpout)1 HubBolt (org.openkilda.wfm.share.hubandspoke.HubBolt)1 WorkerBolt (org.openkilda.wfm.share.hubandspoke.WorkerBolt)1 CrudBolt (org.openkilda.wfm.topology.flow.bolts.CrudBolt)1 ErrorBolt (org.openkilda.wfm.topology.flow.bolts.ErrorBolt)1 NorthboundReplyBolt (org.openkilda.wfm.topology.flow.bolts.NorthboundReplyBolt)1 SpeakerBolt (org.openkilda.wfm.topology.flow.bolts.SpeakerBolt)1