Class KafkaFlowIngester
- java.lang.Object
-
- org.opennms.nephron.testing.benchmark.KafkaFlowIngester
-
public class KafkaFlowIngester extends Object
Utility program that generates synthetic flows and ingests them into Kafka. TheFlowGenOptions.getPlaybackMode()command line argument is of particular interest. It controls if flow timestamps are calculated based on a configured start timestamp or if the current time is used.
-
-
Constructor Summary
Constructors Constructor Description KafkaFlowIngester()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.kafka.clients.producer.Producer<String,byte[]>createProducer(FlowGenOptions options)static voidmain(String[] args)static longsendRecordsToKafka(FlowGenOptions options)
-
-
-
Method Detail
-
createProducer
public static org.apache.kafka.clients.producer.Producer<String,byte[]> createProducer(FlowGenOptions options)
-
sendRecordsToKafka
public static long sendRecordsToKafka(FlowGenOptions options)
-
main
public static void main(String[] args)
-
-