How to access Camel route statistics using Java code ?
Issue
- Is there any way we can have statistical information from a route using Java ?
For example in the web console we can see under the camel tab the following information for each route:
State
Context
Uptime
Version
Completed #
Failed #
Failed Handled #
Total #
Inflight #
Mean Time
Min Time
Max Time
Total Time
Last Time
Last completed
Last failed
Redelivery #
External Redelivery #
Allow use original message
Application context class name
Class resolver
Delta processing time
Exchanges inflight
First exchange completed exchange
First exchange completed timestamp
First exchange failure exchange
First exchange failure timestamp
Last exchange completed exchange
Last exchange failure exchange
Last exchange failure timestamp
Load01
Load05
Load15
Management name
Message history
Package scan class resolver
Properties
Reset timestamp
Shutdown now on timeout
Started routes
Statistics enabled
Timeout
Time unit
Total routes
Tracing
Use breadcrumb
Use mdc logging
Object name
- Can we have all this information using a bean listener in java code ?
Environment
- Red Hat JBoss Fuse
- 6.x
- Apache Camel
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
