Package org.mule.management.stats.printers

Examples of org.mule.management.stats.printers.XMLPrinter


    }

    public String printXmlSummary()
    {
        StringWriter w = new StringWriter(8192);
        XMLPrinter printer = new XMLPrinter(w);
        stats.logSummary(printer);
        return w.toString();
    }
View Full Code Here


    }

    public String printXmlSummary()
    {
        StringWriter w = new StringWriter(8192);
        XMLPrinter printer = new XMLPrinter(w);
        stats.logSummary(printer);
        return w.toString();
    }
View Full Code Here

        if (payload instanceof NullPayload) {
            // <start id="lis_12_context_statistics"/>
            final AllStatistics allStatistics = muleContext.getStatistics();

            allStatistics.logSummary(new XMLPrinter(xmlStatisticsWriter));
            // <end id="lis_12_context_statistics"/>
        } else {
            final String flowName = payload.toString();

            // <start id="lis_12_registry_flow_statistics"/>
            final FlowConstruct flow = muleContext.getRegistry()
                    .lookupFlowConstruct(flowName);

            FlowConstructStatistics flowStatistics = flow.getStatistics();
            new XMLPrinter(xmlStatisticsWriter)
                    .print(Collections.singleton(flowStatistics));
            // <end id="lis_12_registry_flow_statistics"/>
        }

        return xmlStatisticsWriter.toString();
View Full Code Here

TOP

Related Classes of org.mule.management.stats.printers.XMLPrinter

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.