Search in sources :

Example 31 with KafkaBolt

use of org.apache.storm.kafka.bolt.KafkaBolt in project open-kilda by telstra.

the class SwitchManagerTopology method metrics.

private void metrics(TopologyBuilder topologyBuilder) {
    String openTsdbTopic = topologyConfig.getKafkaTopics().getOtsdbTopic();
    KafkaBolt kafkaBolt = createKafkaBolt(openTsdbTopic);
    topologyBuilder.setBolt(METRICS_BOLT, kafkaBolt).shuffleGrouping(SwitchManagerHub.ID, StreamType.HUB_TO_METRICS_BOLT.name());
}
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