Class RouteCoverageXmlParser
java.lang.Object
org.apache.camel.management.mbean.RouteCoverageXmlParser
An XML parser that uses SAX to enrich route stats in the route dump.
The coverage details:
- exchangesTotal - Total number of exchanges
- totalProcessingTime - Total processing time in millis
-
Method Summary
Modifier and TypeMethodDescriptionstatic Document
parseXml
(org.apache.camel.CamelContext camelContext, InputStream is) Parses the XML.
-
Method Details
-
parseXml
public static Document parseXml(org.apache.camel.CamelContext camelContext, InputStream is) throws Exception Parses the XML.- Parameters:
camelContext
- the CamelContextis
- the XML content as an input stream- Returns:
- the DOM model of the routes with coverage information stored as attributes
- Throws:
Exception
- is thrown if error parsing
-