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

Examples of com.dianping.cat.configuration.server.entity.ServerConfig.accept()


      String xml = Files.forIO().readFrom(configFile, "utf-8");
      ServerConfig config = DefaultSaxParser.parse(xml);

      // do validation
      config.accept(new ServerConfigValidator());
      m_config = config;
    } else {
      if (configFile != null) {
        m_logger.warn(String.format("Configuration file(%s) not found, IGNORED.", configFile.getCanonicalPath()));
      }
View Full Code Here


      }

      ServerConfig config = new ServerConfig();

      // do validation
      config.accept(new ServerConfigValidator());
      m_config = config;
    }

    if (m_config.isLocalMode()) {
      m_logger.warn("CAT server is running in LOCAL mode! No HDFS or MySQL will be accessed!");
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.