Package com.mapr.streams.producer
Class MarlinProducerMultiThreadPerformance
- java.lang.Object
-
- com.mapr.streams.producer.MarlinProducerMultiThreadPerformance
-
public class MarlinProducerMultiThreadPerformance extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static longbatchSleepMsstatic intMSG_VALUE_LENGTHstatic booleanmultipleFlushersstatic intnumBatchesstatic intnumMsgsPerPartitionstatic intnumPartitionsstatic intnumTopicsstatic booleanprintProgressstatic org.apache.kafka.clients.producer.KafkaProducerproducerstatic java.lang.StringstreamNamestatic inttotalNumMsgs
-
Constructor Summary
Constructors Constructor Description MarlinProducerMultiThreadPerformance()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)static booleanrunStressTest(java.lang.String stream, int nmsgs, int ntopics, int npartitions, int nbatches, long sleepms, boolean mflushers, boolean progress)static booleanrunTest()static voidusage()
-
-
-
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
-
MSG_VALUE_LENGTH
public static final int MSG_VALUE_LENGTH
- See Also:
- Constant Field Values
-
-
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()
-
-