Package com.dianping.cat.configuration.url.pattern.entity

Examples of com.dianping.cat.configuration.url.pattern.entity.PatternItem


      m_handler = new DefaultUrlPatternHandler();
      m_handler.register(rules);
    }

    private PatternItem buildRule(String pattern) {
      PatternItem item = new PatternItem();

      item.setPattern(pattern);
      return item;
    }
View Full Code Here


    String city = payload.getCity();
    Map<String, String> pars = new LinkedHashMap<String, String>();
    String url = payload.getUrl();

    if (url == null && rules.size() > 0) {
      PatternItem patternItem = new ArrayList<PatternItem>(rules).get(0);

      url = patternItem.getName();
      payload.setGroup(patternItem.getGroup());
      payload.setUrl(url);
    }

    pars.put("metricType", Constants.METRIC_USER_MONITOR);
    pars.put("type", type);
View Full Code Here

    return ID;
  }

  private String queryDomainByUrl(String url) {
    String domain = "";
    PatternItem patternItem = m_urlPatternConfigManager.queryUrlPattern(url);

    if (patternItem != null) {
      domain = patternItem.getDomain();
    }
    return domain;
  }
View Full Code Here

TOP

Related Classes of com.dianping.cat.configuration.url.pattern.entity.PatternItem

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.