Book Image

Apache Karaf Cookbook

By : Jamie Goodyear, Johan Edstorm, Achim Nierbeck, Heath J Kesler
Book Image

Apache Karaf Cookbook

By: Jamie Goodyear, Johan Edstorm, Achim Nierbeck, Heath J Kesler

Overview of this book

Table of Contents (17 chapters)
Apache Karaf Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Displaying Camel Context information in Karaf


Karaf can display detailed information about individual Camel Contexts deployed in the container using the camel:context-info command. Context-wide statistics, behaviors, contained components, and more can be discovered using this command.

Getting ready

Follow the instructions in the Listing Camel Contexts in Karaf recipe's Getting ready section for this recipe.

How to do it…

Use the following camel:context-info command on the Karaf console to retrieve context information—a small warning, there may be a lot of output generated:

karaf@root()> camel:context-info CamelCommandContext 

The output will be as follows:

Camel Context CamelCommandContext
  Name: CamelCommandContext
  ManagementName: 123-CamelCommandContext
  Version: 2.12.2
  Status: Started
  Uptime: 1 hour 50 minutes
Statistics
  Exchanges Total: 1321
  Exchanges Completed: 1321
  Exchanges Failed: 0
  Min Processing Time: 0ms
  Max Processing Time: 6ms
  Mean Processing Time: 0ms
  Total...