Package kafka.perf.consumer

Examples of kafka.perf.consumer.SimplePerfConsumer


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

      consumers[i] = new SimplePerfConsumer(topic,kafkaServerURL, kafkaServerPort, kafkaProducerBufferSize, connectionTimeOut, reconnectInterval,
                                  fetchSize, InetAddress.getLocalHost().getHostAddress()+ consumerName +i, this.numParts);
    }

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


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

            consumers[i] = new SimplePerfConsumer(topic,kafkaServerURL, kafkaServerPort, kafkaBufferSize, connectionTimeOut, reconnectInterval,
                    fetchSize, InetAddress.getLocalHost().getHostAddress()+ consumerName +i, this.numParts);
        }

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

TOP

Related Classes of kafka.perf.consumer.SimplePerfConsumer

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.