Package org.apache.storm.kafka.bolt
Class KafkaProducerTopology
- java.lang.Object
-
- org.apache.storm.kafka.bolt.KafkaProducerTopology
-
public class KafkaProducerTopology extends Object
-
-
Constructor Summary
Constructors Constructor Description KafkaProducerTopology()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StormTopology
newTopology(String brokerUrl, String topicName)
Create a new topology that writes random UUIDs to Kafka.
-
-
-
Method Detail
-
newTopology
public static StormTopology newTopology(String brokerUrl, String topicName)
Create a new topology that writes random UUIDs to Kafka.- Parameters:
brokerUrl
- Kafka broker URLtopicName
- Topic to which publish sentences- Returns:
- A Storm topology that produces random UUIDs using a
LambdaSpout
and uses aKafkaBolt
to publish the UUIDs to the kafka topic specified
-
-