Class Producer

java.lang.Object
com.mapr.streams.producer.Producer

public class Producer extends Object
  • Field Details

    • streamName

      public static 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
    • MSG_VALUE_LENGTH

      public static final int MSG_VALUE_LENGTH
      See Also:
    • printStats

      public static boolean printStats
    • rgen

      public static ProducerRecordGenerator rgen
  • Constructor Details

    • Producer

      public Producer()
  • Method Details

    • usage

      public static void usage()
    • main

      public static void main(String[] args) throws IOException
      Throws:
      IOException
    • runTest

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

      public static boolean runTest(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(String path, int nstreams, int ntopics, int nslowtopics, int npart, int nmsgs, boolean mflushers)
    • run

      public static boolean run()