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

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


    }
  }

  public List<Pair<String, Integer>> getConsoleEndpoints() {
    if (m_config != null) {
      ConsoleConfig console = m_config.getConsole();
      String remoteServers = console.getRemoteServers();
      List<String> endpoints = Splitters.by(',').noEmptyItem().trim().split(remoteServers);
      List<Pair<String, Integer>> pairs = new ArrayList<Pair<String, Integer>>(endpoints.size());

      for (String endpoint : endpoints) {
        int pos = endpoint.indexOf(':');
View Full Code Here


    }
  }

  public String getConsoleRemoteServers() {
    if (m_config != null) {
      ConsoleConfig console = m_config.getConsole();
      String remoteServers = console.getRemoteServers();

      if (remoteServers != null && remoteServers.length() > 0) {
        return remoteServers;
      }
    }
View Full Code Here

    if (config.getConsumer() == null) {
      config.setConsumer(new ConsumerConfig());
    }

    if (config.getConsole() == null) {
      config.setConsole(new ConsoleConfig());
    }

    super.visitConfig(config);
  }
View Full Code Here

TOP

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

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.