Package com.mapr.streams.producer
Class MarlinProducerMultiThreadPerformance
java.lang.Object
com.mapr.streams.producer.MarlinProducerMultiThreadPerformance
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic longstatic final intstatic booleanstatic intstatic intstatic intstatic intstatic booleanstatic org.apache.kafka.clients.producer.KafkaProducerstatic Stringstatic int -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
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:
-
-
Constructor Details
-
MarlinProducerMultiThreadPerformance
public MarlinProducerMultiThreadPerformance()
-
-
Method Details
-
usage
public static void usage() -
main
- Throws:
IOException
-
runStressTest
public static boolean runStressTest(String stream, int nmsgs, int ntopics, int npartitions, int nbatches, long sleepms, boolean mflushers, boolean progress) throws IOException - Throws:
IOException
-
runTest
public static boolean runTest()
-