Examples of CamelContextStatistics


Examples of org.fusesource.ide.jmx.camel.navigator.stats.model.CamelContextStatistics

      try {
        String xml = camelContextNode.getFacade().dumpRoutesStatsAsXml(managementName);
        if (xml != null) {
          xml = xml.trim();
          if (xml.length() > 0) {
            CamelContextStatistics stats = getStatistics(xml);
            if (stats != null) {
              ArrayList<RouteStatistics> routeStatisticsList = stats.getRouteStatisticsList();
              if (routeStatisticsList != null) {
                Map<String, IProcessorStatistics> map = new HashMap<String, IProcessorStatistics>();
                for (RouteStatistics stat : routeStatisticsList) {
                  String id = stat.getId();
                  map.put(id, stat);
View Full Code Here

Examples of org.fusesource.ide.jmx.camel.navigator.stats.model.CamelContextStatistics

   *
   * @param xmlDump
   * @return the model or null on errors
   */
  private CamelContextStatistics getStatistics(String xmlDump) {
    CamelContextStatistics stats = null;
    try {
      JAXBContext context = JAXBContext.newInstance(CamelContextStatistics.class, RouteStatistics.class, ProcessorStatistics.class);
      Unmarshaller um = context.createUnmarshaller();
      stats = (CamelContextStatistics) um.unmarshal(new StringReader(xmlDump));
    } catch (Exception ex) {
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.