Package storm.kafka

Examples of storm.kafka.DynamicBrokersReader


  long refreshMillis;

  public ZkBrokerReader(Map conf, String topic, ZkHosts hosts) {
    try {
      reader = new DynamicBrokersReader(conf, hosts.brokerZkStr, hosts.brokerZkPath, topic);
      cachedBrokers = reader.getBrokerInfo();
      lastRefreshTimeMs = System.currentTimeMillis();
      refreshMillis = hosts.refreshFreqSecs * 1000L;
    } catch (java.net.SocketTimeoutException e) {
      LOG.warn("Failed to update brokers", e);
View Full Code Here



    long refreshMillis;

    public ZkBrokerReader(Map conf, String topic, ZkHosts hosts) {
        reader = new DynamicBrokersReader(conf, hosts.brokerZkStr, hosts.brokerZkPath, topic);
        cachedBrokers = reader.getBrokerInfo();
        lastRefreshTimeMs = System.currentTimeMillis();
        refreshMillis = hosts.refreshFreqSecs * 1000L;

    }
View Full Code Here

    DynamicBrokersReader reader;
    long lastRefreshTimeMs;
    long refreshMillis;
   
    public ZkBrokerReader(Map conf, String topic, ZkHosts hosts) {
        reader = new DynamicBrokersReader(conf, hosts.brokerZkStr, hosts.brokerZkPath, topic);
        cachedBrokers = reader.getBrokerInfo();
        lastRefreshTimeMs = System.currentTimeMillis();
        refreshMillis = hosts.refreshFreqSecs * 1000L;
    }
View Full Code Here

TOP

Related Classes of storm.kafka.DynamicBrokersReader

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.