Package com.mapr.streams.producer
Class Producer
java.lang.Object
com.mapr.streams.producer.Producer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic booleanstatic intstatic intstatic intstatic intstatic intstatic intstatic booleanstatic org.apache.kafka.clients.producer.KafkaProducerstatic ProducerRecordGeneratorstatic booleanstatic String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic booleanrun()static booleanrunTest(String path, int nstreams, int ntopics, int nslowtopics, int npart, int nmsgs, boolean mflushers) static booleanrunTest(String path, int nstreams, int ntopics, int nslowtopics, int npart, int nmsgs, boolean mflushers, int numHdrs, boolean hdrVal) static booleanrunTest(String path, int nstreams, int ntopics, int nslowtopics, int npart, int nmsgs, boolean mflushers, int numHdrs, boolean hdrVal, ProducerRecordGenerator recgen) static voidusage()
-
Field Details
-
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
-
-
Constructor Details
-
Producer
public Producer()
-
-
Method Details
-
usage
public static void usage() -
main
- 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()
-