Package com.dianping.cat.configuration.app.entity

Examples of com.dianping.cat.configuration.app.entity.AppConfig


      }
    } catch (Exception e) {
      Cat.logError(e);
    }
    if (m_config == null) {
      m_config = new AppConfig();
    }
    Threads.forGroup("cat").start(new ConfigReloadTask());
  }
View Full Code Here


  }

  public List<Command> queryCommands() {
    try {
      String xml = m_config.toString();
      AppConfig config = DefaultSaxParser.parse(xml);

      Map<Integer, Command> commands = config.getCommands();

      for (Entry<Integer, Command> entry : commands.entrySet()) {
        entry.getValue().getCodes().putAll(m_config.getCodes());
      }
      return new ArrayList<Command>(commands.values());
View Full Code Here

    long modifyTime = config.getModifyDate().getTime();

    synchronized (this) {
      if (modifyTime > m_modifyTime) {
        String content = config.getContent();
        AppConfig appConfig = DefaultSaxParser.parse(content);

        m_config = appConfig;
        m_modifyTime = modifyTime;
        refreshData();
      }
View Full Code Here

TOP

Related Classes of com.dianping.cat.configuration.app.entity.AppConfig

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.