Package com.dianping.cat.configuration.server.entity

Examples of com.dianping.cat.configuration.server.entity.LongConfig


    return null;
  }

  public Map<String, Domain> getLongConfigDomains() {
    if (m_config != null) {
      LongConfig longConfig = m_config.getConsumer().getLongConfig();

      if (longConfig != null) {
        return longConfig.getDomains();
      }
    }

    return Collections.emptyMap();
  }
View Full Code Here


    return Collections.emptyMap();
  }

  public int getLongSqlDefaultThreshold() {
    if (m_config != null) {
      LongConfig longConfig = m_config.getConsumer().getLongConfig();

      if (longConfig != null && longConfig.getDefaultUrlThreshold() != null) {
        return longConfig.getDefaultUrlThreshold();
      }
    }

    return 1000; // 1 second
  }
View Full Code Here

    return 1000; // 1 second
  }

  public int getLongUrlDefaultThreshold() {
    if (m_config != null) {
      LongConfig longConfig = m_config.getConsumer().getLongConfig();

      if (longConfig != null && longConfig.getDefaultSqlThreshold() != null) {
        return longConfig.getDefaultSqlThreshold();
      }
    }

    return 1000; // 1 second
  }
View Full Code Here

  }

  @Override
  public void visitConsumer(ConsumerConfig consumer) {
    if (consumer.getLongConfig() == null) {
      consumer.setLongConfig(new LongConfig());
    }

    super.visitConsumer(consumer);
  }
View Full Code Here

TOP

Related Classes of com.dianping.cat.configuration.server.entity.LongConfig

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.