Class MarlinProducerMultiThreadPerformance


  • public class MarlinProducerMultiThreadPerformance
    extends java.lang.Object
    • Field Detail

      • streamName

        public static java.lang.String streamName
      • numTopics

        public static int numTopics
      • numPartitions

        public static int numPartitions
      • numMsgsPerPartition

        public static int numMsgsPerPartition
      • numBatches

        public static int numBatches
      • batchSleepMs

        public static long batchSleepMs
      • multipleFlushers

        public static boolean multipleFlushers
      • printProgress

        public static boolean printProgress
      • totalNumMsgs

        public static int totalNumMsgs
      • producer

        public static org.apache.kafka.clients.producer.KafkaProducer producer
    • Constructor Detail

      • MarlinProducerMultiThreadPerformance

        public MarlinProducerMultiThreadPerformance()
    • Method Detail

      • usage

        public static void usage()
      • main

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

        public static boolean runStressTest​(java.lang.String stream,
                                            int nmsgs,
                                            int ntopics,
                                            int npartitions,
                                            int nbatches,
                                            long sleepms,
                                            boolean mflushers,
                                            boolean progress)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • runTest

        public static boolean runTest()