Package com.dianping.cat.home.rule.transform

Examples of com.dianping.cat.home.rule.transform.DefaultJsonBuilder


    String key = m_metricConfigManager.buildMetricKey(payload.getDomain(), payload.getType(), payload.getMetricKey());
    Rule rule = m_businessRuleConfigManager.queryRule(payload.getProductLineName(), key);

    if (rule != null) {
      ruleId = rule.getId();
      configHeader = new DefaultJsonBuilder(true).buildArray(rule.getMetricItems());
      configsStr = new DefaultJsonBuilder(true).buildArray(rule.getConfigs());
    }
    String content = m_ruleDecorator.generateConfigsHtml(configsStr);

    model.setId(ruleId);
    model.setConfigHeader(configHeader);
View Full Code Here


    String ruleId = "";

    if (!StringUtil.isEmpty(key)) {
      Rule rule = manager.queryRule(key);
      ruleId = rule.getId();
      configsStr = new DefaultJsonBuilder(true).buildArray(rule.getConfigs());

      String configHeader = new DefaultJsonBuilder(true).buildArray(rule.getMetricItems());

      model.setConfigHeader(configHeader);
    }
    String content = m_ruleDecorator.generateConfigsHtml(configsStr);
View Full Code Here

TOP

Related Classes of com.dianping.cat.home.rule.transform.DefaultJsonBuilder

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.