Package kafka.perf.producer

Examples of kafka.perf.producer.Producer


      if(hosts.length >= numProducer)
        kafkaServerURL = hosts[i];
      else
        kafkaServerURL = hosts[random.nextInt(hosts.length)];

      producers[i] = new Producer(topic,kafkaServerURL, kafkaServerPort, kafkaProducerBufferSize, connectionTimeOut, reconnectInterval,
                                  messageSize, InetAddress.getLocalHost().getHostAddress()+ producerName +i, batchSize, numParts);
    }

    // Start the threads
    for(int i = 0; i < numProducer; i++)
View Full Code Here


            if(hosts.length >= numProducer)
                kafkaServerURL = hosts[i];
            else
                kafkaServerURL = hosts[random.nextInt(hosts.length)];

            producers[i] = new Producer(topic,kafkaServerURL, kafkaServerPort, kafkaBufferSize, connectionTimeOut, reconnectInterval,
                    messageSize, InetAddress.getLocalHost().getHostAddress()+ producerName +i, batchSize,
                    numParts, compressionCodec);
        }

        // Start the threads
View Full Code Here

TOP

Related Classes of kafka.perf.producer.Producer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.