Package com.mapr.streams.producer
Class Producer
- java.lang.Object
-
- com.mapr.streams.producer.Producer
-
public class Producer extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static intMSG_VALUE_LENGTHstatic booleanmultipleFlushersstatic intnumHeadersstatic intnumMsgsPerPartitionstatic intnumPartitionsstatic intnumSlowTopicsstatic intnumStreamsstatic intnumTopicsstatic booleanprintStatsstatic org.apache.kafka.clients.producer.KafkaProducerproducerstatic ProducerRecordGeneratorrgenstatic booleansendHdrValstatic java.lang.StringstreamName
-
Constructor Summary
Constructors Constructor Description Producer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidmain(java.lang.String[] args)static booleanrun()static booleanrunTest(java.lang.String path, int nstreams, int ntopics, int nslowtopics, int npart, int nmsgs, boolean mflushers)static booleanrunTest(java.lang.String path, int nstreams, int ntopics, int nslowtopics, int npart, int nmsgs, boolean mflushers, int numHdrs, boolean hdrVal)static booleanrunTest(java.lang.String path, int nstreams, int ntopics, int nslowtopics, int npart, int nmsgs, boolean mflushers, int numHdrs, boolean hdrVal, ProducerRecordGenerator recgen)static voidusage()
-
-
-
Field Detail
-
streamName
public static java.lang.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:
- Constant Field Values
-
printStats
public static boolean printStats
-
rgen
public static ProducerRecordGenerator rgen
-
-
Method Detail
-
usage
public static void usage()
-
main
public static void main(java.lang.String[] args) throws java.io.IOException- Throws:
java.io.IOException
-
runTest
public static boolean runTest(java.lang.String path, int nstreams, int ntopics, int nslowtopics, int npart, int nmsgs, boolean mflushers, int numHdrs, boolean hdrVal)
-
runTest
public static boolean runTest(java.lang.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(java.lang.String path, int nstreams, int ntopics, int nslowtopics, int npart, int nmsgs, boolean mflushers)
-
run
public static boolean run()
-
-