Class RouteCoverageXmlParser
- java.lang.Object
-
- org.apache.camel.management.mbean.RouteCoverageXmlParser
-
public final class RouteCoverageXmlParser extends Object
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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Document
parseXml(org.apache.camel.CamelContext camelContext, InputStream is)
Parses the XML.
-
-
-
Method Detail
-
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
-
-