Class Producer


  • public class Producer
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      Producer()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void main​(java.lang.String[] args)  
      static boolean run()  
      static boolean runTest​(java.lang.String path, int nstreams, int ntopics, int nslowtopics, int npart, int nmsgs, boolean mflushers)  
      static boolean runTest​(java.lang.String path, int nstreams, int ntopics, int nslowtopics, int npart, int nmsgs, boolean mflushers, int numHdrs, boolean hdrVal)  
      static boolean runTest​(java.lang.String path, int nstreams, int ntopics, int nslowtopics, int npart, int nmsgs, boolean mflushers, int numHdrs, boolean hdrVal, ProducerRecordGenerator recgen)  
      static void usage()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • streamName

        public static java.lang.String streamName
      • numStreams

        public static int numStreams
      • numTopics

        public static int numTopics
      • numSlowTopics

        public static int numSlowTopics
      • numPartitions

        public static int numPartitions
      • numHeaders

        public static int numHeaders
      • sendHdrVal

        public static boolean sendHdrVal
      • numMsgsPerPartition

        public static int numMsgsPerPartition
      • multipleFlushers

        public static boolean multipleFlushers
      • producer

        public static org.apache.kafka.clients.producer.KafkaProducer producer
      • printStats

        public static boolean printStats
    • Constructor Detail

      • Producer

        public Producer()
    • Method Detail

      • usage

        public static void usage()
      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • runTest

        public static boolean runTest​(java.lang.String path,
                                      int nstreams,
                                      int ntopics,
                                      int nslowtopics,
                                      int npart,
                                      int nmsgs,
                                      boolean mflushers,
                                      int numHdrs,
                                      boolean hdrVal)
      • runTest

        public static boolean runTest​(java.lang.String path,
                                      int nstreams,
                                      int ntopics,
                                      int nslowtopics,
                                      int npart,
                                      int nmsgs,
                                      boolean mflushers,
                                      int numHdrs,
                                      boolean hdrVal,
                                      ProducerRecordGenerator recgen)
      • runTest

        public static boolean runTest​(java.lang.String path,
                                      int nstreams,
                                      int ntopics,
                                      int nslowtopics,
                                      int npart,
                                      int nmsgs,
                                      boolean mflushers)
      • run

        public static boolean run()