Control Bus

Control Bus

Scheme: controlbus

The control bus endpoint.

Name Kind Type Required Deprecated Default Value Enum Values Description
command path java.lang.String true false route
language
Command can be either route or language
language path org.apache.camel.spi.Language false bean
constant
el
exchangeProperty
file
groovy
header
jsonpath
jxpath
mvel
ognl
ref
simple
spel
sql
terser
tokenize
xpath
xquery
xtokenize
Allows you to specify the name of a Language to use for evaluating the message body. If there is any result from the evaluation, then the result is put in the message body.
routeId parameter java.lang.String false To specify a route by its id.
action parameter java.lang.String false start
stop
suspend
resume
status
To denote an action that can be either: start, stop, or status.

To either start or stop a route, or to get the status of the route as output in the message body. You can use suspend and resume from Camel 2.11.1 onwards to either suspend or resume a route. And from Camel 2.11.1 onwards you can use stats to get performance statics returned in XML format; the routeId option can be used to define which route to get the performance stats for, if routeId is not defined, then you get statistics for the entire CamelContext.

async parameter boolean false Whether to execute the control bus task asynchronously.

Important: If this option is enabled, then any result from the task is not set on the Exchange. This is only possible if executing tasks synchronously.

loggingLevel parameter org.apache.camel.LoggingLevel false INFO DEBUG
ERROR
INFO
TRACE
WARN
OFF
Logging level used for logging when task is done, or if any exceptions occurred during processing the task.
exchangePattern parameter org.apache.camel.ExchangePattern false InOnly InOnly
RobustInOnly
InOut
InOptionalOut
OutOnly
RobustOutOnly
OutIn
OutOptionalIn
Sets the default exchange pattern when creating an exchange.
synchronous parameter boolean false false Sets whether synchronous processing should be strictly used, or Camel is allowed to use asynchronous processing (if supported). @param synchronous true to enforce synchronous processing