...
Command | Description |
---|---|
camel:endpoint-list | Lists endpoints fromm all camel contexts available in the current Karaf instance |
camel:context-list
...
The *camel:context-list-contexts* command displays the list of CamelContext available in the current Karaf instance:
Code Block |
---|
karaf@root> camel:context-list-contexts Name Status Uptime [66-camel-3 ] [Started ] [14.559 seconds ] |
It displays the context name/ID (used in others commands), the current status (started/stopped), the uptime (since when the context has been started).
camel:route-list
...
The *camel:route-list-routes* command displays the list of Camel routes available in the current Karaf instance:
Code Block |
---|
karaf@root> camel:route-list-routes [route1 ] |
You can also filter the routes by CamelContext:
Code Block |
---|
karaf@root> camel:route-list-routes 66-camel-3 [route1 ] |
Tip: use the TAB key to completion on the CamelContext ID.
camel:info-context
The *camel:context-info-context* command displays detail information about a given CamelContext:
add the *--verbose* option (following the context name) to also list the endpoints
Code Block |
---|
karaf@root> camel:context-info-context 66-camel-3 Camel Context 66-camel-3 Name: 66-camel-3 Version: 2.8.0 Status: Started Uptime: 1 minute Advanced Auto Startup: true Starting Routes: false Suspended: false Tracing: false Properties Components timer properties log Endpoints timer://test log://test Routes route1 Used Languages |
...
Tip: use TAB key for completion on the CamelContext name.
camel:context-start
...
The *camel:context-start-context* command starts a given CamelContext:
Code Block |
---|
karaf@root> camel:context-start-context 66-camel-3 |
Tip: use TAB key for completion on the CamelContext name.
camel:context-stop
...
The *camel:context-stop-context* command stops a given CamelContext:
Code Block |
---|
karaf@root> karaf@root> camel:context-stop-context 66-camel-3 |
Tip: use TAB key for completion on the CamelContext name.
camel:route-info
...
The *camel:route-info-route* command provides detail information about a Camel route:
Code Block |
---|
karaf@root> camel:route-info-route route1 Camel Route route1 Camel Context: 66-camel-3 Properties id = route1 parent = 2e7aacc1 Statistics Exchanges Total: 98 Exchanges Completed: 98 Exchanges Failed: 0 Min Processing Time: 1ms Max Processing Time: 2ms Mean Processing Time: 1ms Total Processing Time: 134ms Last Processing Time: 1ms First Exchange Date: 2011-06-29 07:21:57 Last Exchange Completed Date: 2011-06-29 07:23:34 Definition <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <route id="route1" xmlns="http://camel.apache.org/schema/spring"> <from uri="timer:test"/> <to uri="log:test" id="to1"/> </route> |
...
Tip: use TAB key for completion on the route name.
camel:route-show
...
The *camel:route-show-route* command renders the route in XML. It's independent from the DSL used to define the route:
Code Block |
---|
karaf@root> camel:route-show-route route1 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <route id="route1" xmlns="http://camel.apache.org/schema/spring"> <from uri="timer:test"/> <to uri="log:test" id="to1"/> </route> |
Tip: use TAB key for completion on the route name.
camel:route-start
...
The *camel:route-start-route* command starts a Camel route:
Code Block |
---|
karaf@root> camel:route-start-route route1 |
Tip: use TAB key for completion on the route name.
camel:route-stop
...
The *camel:route-stop-route* command stops a Camel route:
Code Block |
---|
karaf@root> camel:route-stop-route route1 |
Camel 2.9 or newer:
camel:route-suspend
The *camel:startroute-routesuspend* command suspends a Camel route:
...
Tip: use TAB key for completion on the route name.
camel:route-resume
...
The *camel:route-resume* command resume a Camel route:
...