Search in sources :

Example 1 with OtsdbEncoder

use of org.openkilda.wfm.topology.ping.bolt.OtsdbEncoder 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)

Aggregations

KafkaBolt (org.apache.storm.kafka.bolt.KafkaBolt)1 OtsdbEncoder (org.openkilda.wfm.topology.ping.bolt.OtsdbEncoder)1