Author: buildbot
Date: Sat Feb  7 09:18:03 2015
New Revision: 939330

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/controlbus-component.html
    websites/production/camel/content/controlbus.html

Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.

Modified: websites/production/camel/content/controlbus-component.html
==============================================================================
--- websites/production/camel/content/controlbus-component.html (original)
+++ websites/production/camel/content/controlbus-component.html Sat Feb  7 
09:18:03 2015
@@ -84,109 +84,38 @@
        <tbody>
         <tr>
         <td valign="top" width="100%">
-<div class="wiki-content maincontent"><h2 
id="ControlBusComponent-ControlBusComponent">ControlBus Component</h2>
-<p><strong>Available as of Camel 2.11</strong></p>
-
-<p>The <strong>controlbus:</strong> component provides easy management of 
Camel applications based on the <a shape="rect" href="controlbus.html">Control 
Bus</a> EIP pattern.<br clear="none">
-For example, by sending a message to an <a shape="rect" 
href="endpoint.html">Endpoint</a> you can control the lifecycle of routes, or 
gather performance statistics.</p>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[
-controlbus:command[?options]
-]]></script>
-</div></div>
-
-<p>Where <strong>command</strong> can be any string to identify which type of 
command to use.</p>
-
-<h3 id="ControlBusComponent-Commands">Commands </h3>
-<div class="confluenceTableSmall">
-<div class="table-wrap"><table class="confluenceTable"><tbody><tr><th 
colspan="1" rowspan="1" class="confluenceTh"><p> Command </p></th><th 
colspan="1" rowspan="1" class="confluenceTh"><p> Description 
</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> 
<code>route</code> </p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p> To control routes using the <code>routeId</code> and 
<code>action</code> parameter. </p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p> <code>language</code> </p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p> Allows you to specify a <a shape="rect" 
href="language.html">Language</a> to use for evaluating the message body. If 
there is any result from the evaluation, then the result is put in the message 
body. </p></td></tr></tbody></table></div>
-</div>
-
-<h3 id="ControlBusComponent-Options">Options</h3>
-<div class="confluenceTableSmall">
-<div class="table-wrap"><table class="confluenceTable"><tbody><tr><th 
colspan="1" rowspan="1" class="confluenceTh"><p> Name </p></th><th colspan="1" 
rowspan="1" class="confluenceTh"><p> Default Value </p></th><th colspan="1" 
rowspan="1" class="confluenceTh"><p> Description </p></th></tr><tr><td 
colspan="1" rowspan="1" class="confluenceTd"><p> <code>routeId</code> 
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>null</code> 
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> To specify a 
route by its <code>id</code>. </p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p> <code>action</code> </p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p> <code>null</code> </p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p> To denote an action that can be either: 
<code>start</code>, <code>stop</code>, or <code>status</code>. To either start 
or stop a route, or to get the status of the route as output in the message 
body. You can use 
 <code>suspend</code> and <code>resume</code> from <strong>Camel 
2.11.1</strong> onwards to either suspend or resume a route. And from 
<strong>Camel 2.11.1</strong> onwards you can use <code>stats</code> to get 
performance statics returned in XML format; the <code>routeId</code> option can 
be used to define which route to get the performance stats for, if 
<code>routeId</code> is not defined, then you get statistics for the entire <a 
shape="rect" href="camelcontext.html">CamelContext</a>. </p></td></tr><tr><td 
colspan="1" rowspan="1" class="confluenceTd"><p> <code>async</code> 
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> 
<code>false</code> </p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p> Whether to execute the control bus task 
asynchronously. <strong>Important:</strong> If this option is enabled, then any 
result from the task is <strong>not</strong> set on the <a shape="rect" 
href="exchange.html">Exchange</a>. This is only possible if executing tasks sync
 hronously. </p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p> <code>loggingLevel</code> </p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p> <code>INFO</code> </p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p> Logging level used for logging when task 
is done, or if any exceptions occurred during processing the task. 
</p></td></tr></tbody></table></div>
-</div>
-
-<p>You can append query options to the URI in the following format, 
<code>?option=value&amp;option=value&amp;...</code></p>
-
-<h3 id="ControlBusComponent-Samples">Samples</h3>
-
-<h4 id="ControlBusComponent-Usingroutecommand">Using route command</h4>
-
-<p>The route command allows you to do common tasks on a given route very 
easily, for example to start a route, you can send an empty message to this 
endpoint:</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[
-template.sendBody(&quot;controlbus:route?routeId=foo&amp;action=start&quot;, 
null);
-]]></script>
-</div></div>
-
-<p>To get the status of the route, you can do:</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[
-String status = 
template.requestBody(&quot;controlbus:route?routeId=foo&amp;action=status&quot;,
 null, String.class);
-]]></script>
-</div></div>
-
-
-<h5 id="ControlBusComponent-Gettingperformancestatistics">Getting performance 
statistics</h5>
-<p><strong>Available as of Camel 2.11.1</strong></p>
-
-<p>This requires JMX to be enabled (is by default) then you can get the 
performance statics per route, or for the <a shape="rect" 
href="camelcontext.html">CamelContext</a>. For example to get the statics for a 
route named foo, we can do:</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[
-String xml = 
template.requestBody(&quot;controlbus:route?routeId=foo&amp;action=stats&quot;, 
null, String.class);
-]]></script>
-</div></div>
-
-<p>The returned statics is in XML format. Its the same data you can get from 
JMX with the <code>dumpRouteStatsAsXml</code> operation on the 
<code>ManagedRouteMBean</code>.</p>
-
-<p>To get statics for the entire <a shape="rect" 
href="camelcontext.html">CamelContext</a> you just omit the routeId parameter 
as shown below:</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[
-String xml = template.requestBody(&quot;controlbus:route?action=stats&quot;, 
null, String.class);
-]]></script>
-</div></div>
-
-
-<h4 id="ControlBusComponent-Usinglanguage">Using <a shape="rect" 
href="simple.html">Simple</a> language</h4>
-
-<p>You can use the <a shape="rect" href="simple.html">Simple</a> language with 
the control bus, for example to stop a specific route, you can send a message 
to the <code>"controlbus:language:simple"</code> endpoint containing the 
following message:</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[
-template.sendBody(&quot;controlbus:language:simple&quot;, 
&quot;${camelContext.stopRoute(&#39;myRoute&#39;)}&quot;);
-]]></script>
-</div></div>
-
-<p>As this is a void operation, no result is returned. However, if you want 
the route status you can do:</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[
-String status = template.requestBody(&quot;controlbus:language:simple&quot;, 
&quot;${camelContext.getRouteStatus(&#39;myRoute&#39;)}&quot;, String.class);
-]]></script>
-</div></div>
-
-<p><strong>Notice:</strong> its easier to use the <code>route</code> command 
to control lifecycle of routes. The <code>language</code> command allows you to 
execute a language script that has stronger powers such as <a shape="rect" 
href="groovy.html">Groovy</a> or to some extend the <a shape="rect" 
href="simple.html">Simple</a> language. </p>
-
-<p>For example to shutdown Camel itself you can do:</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[
-template.sendBody(&quot;controlbus:language:simple?async=true&quot;, 
&quot;${camelContext.stop()}&quot;);
-]]></script>
-</div></div>
-<p>Notice we use <code>async=true</code> to stop Camel asynchronously as 
otherwise we would be trying to stop Camel while it was in-flight processing 
the message we sent to the control bus component.</p>
-
-    <div class="aui-message success shadowed information-macro">
+<div class="wiki-content maincontent"><h2 
id="ControlBusComponent-ControlBusComponent">ControlBus 
Component</h2><p><strong>Available as of Camel 2.11</strong></p><p>The 
<strong>controlbus:</strong> component provides easy management of Camel 
applications based on the <a shape="rect" href="controlbus.html">Control 
Bus</a> EIP pattern.<br clear="none"> For example, by sending a message to an 
<a shape="rect" href="endpoint.html">Endpoint</a> you can control the lifecycle 
of routes, or gather performance statistics.</p><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[controlbus:command[?options]
+]]></script>
+</div></div><p>Where <strong>command</strong> can be any string to identify 
which type of command to use.</p><h3 
id="ControlBusComponent-Commands">Commands</h3><div 
class="confluenceTableSmall"><div class="table-wrap"><table 
class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" 
class="confluenceTh"><p>Command</p></th><th colspan="1" rowspan="1" 
class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>route</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>To control routes using the 
<code>routeId</code> and <code>action</code> parameter.</p></td></tr><tr><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>language</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>Allows you to specify a <a shape="rect" 
href="language.html">Language</a> to use for evaluating the message body. If 
there is any result from the evaluation, then the result is put in the message 
body.</p></td></tr></tbody
 ></table></div></div><h3 id="ControlBusComponent-Options">Options</h3><div 
 >class="confluenceTableSmall"><div class="table-wrap"><table 
 >class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" 
 >class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" 
 >class="confluenceTh"><p>Default Value</p></th><th colspan="1" rowspan="1" 
 >class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" 
 >rowspan="1" class="confluenceTd"><p><code>routeId</code></p></td><td 
 >colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
 >colspan="1" rowspan="1" class="confluenceTd"><p>To specify a route by its 
 ><code>id</code>.</p></td></tr><tr><td colspan="1" rowspan="1" 
 >class="confluenceTd"><p><code>action</code></p></td><td colspan="1" 
 >rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td colspan="1" 
 >rowspan="1" class="confluenceTd"><p>To denote an action that can be either: 
 ><code>start</code>, <code>stop, suspend, resume</code>, or 
 ><code>status</code>. To eit
 her start or stop a route, or to get the status of the route as output in the 
message body. You can use <code>suspend</code> and <code>resume</code> from 
<strong>Camel 2.11.1</strong> onwards to either suspend or resume a route. And 
from <strong>Camel 2.11.1</strong> onwards you can use <code>stats</code> to 
get performance statics returned in XML format; the <code>routeId</code> option 
can be used to define which route to get the performance stats for, if 
<code>routeId</code> is not defined, then you get statistics for the entire <a 
shape="rect" href="camelcontext.html">CamelContext</a>.</p></td></tr><tr><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>async</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p>Whether to execute the control 
bus task asynchronously. <strong>Important:</strong> If this option is enabled, 
then any result from the task is <strong>not</strong> set on th
 e <a shape="rect" href="exchange.html">Exchange</a>. This is only possible if 
executing tasks synchronously.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>loggingLevel</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>INFO</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>Logging level used for logging when task is 
done, or if any exceptions occurred during processing the 
task.</p></td></tr></tbody></table></div></div><p>You can append query options 
to the URI in the following format, 
<code>?option=value&amp;option=value&amp;...</code></p><h3 
id="ControlBusComponent-Samples">Samples</h3><h4 
id="ControlBusComponent-Usingroutecommand">Using route command</h4><p>The route 
command allows you to do common tasks on a given route very easily, for example 
to start a route, you can send an empty message to this endpoint:</p><div 
class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[template.sendBody(&quot;controlbus:route?routeId=foo&amp;action=start&quot;,
 null);
+]]></script>
+</div></div><p>To get the status of the route, you can do:</p><div class="code 
panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[String status = 
template.requestBody(&quot;controlbus:route?routeId=foo&amp;action=status&quot;,
 null, String.class);
+]]></script>
+</div></div><h5 id="ControlBusComponent-Gettingperformancestatistics">Getting 
performance statistics</h5><p><strong>Available as of Camel 
2.11.1</strong></p><p>This requires JMX to be enabled (is by default) then you 
can get the performance statics per route, or for the <a shape="rect" 
href="camelcontext.html">CamelContext</a>. For example to get the statics for a 
route named foo, we can do:</p><div class="code panel pdl" style="border-width: 
1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[String xml = 
template.requestBody(&quot;controlbus:route?routeId=foo&amp;action=stats&quot;, 
null, String.class);
+]]></script>
+</div></div><p>The returned statics is in XML format. Its the same data you 
can get from JMX with the <code>dumpRouteStatsAsXml</code> operation on the 
<code>ManagedRouteMBean</code>.</p><p>To get statics for the entire <a 
shape="rect" href="camelcontext.html">CamelContext</a> you just omit the 
routeId parameter as shown below:</p><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[String xml = 
template.requestBody(&quot;controlbus:route?action=stats&quot;, null, 
String.class);
+]]></script>
+</div></div><h4 id="ControlBusComponent-Usinglanguage">Using <a shape="rect" 
href="simple.html">Simple</a> language</h4><p>You can use the <a shape="rect" 
href="simple.html">Simple</a> language with the control bus, for example to 
stop a specific route, you can send a message to the 
<code>"controlbus:language:simple"</code> endpoint containing the following 
message:</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[template.sendBody(&quot;controlbus:language:simple&quot;,
 &quot;${camelContext.stopRoute(&#39;myRoute&#39;)}&quot;);
+]]></script>
+</div></div><p>As this is a void operation, no result is returned. However, if 
you want the route status you can do:</p><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[String status = 
template.requestBody(&quot;controlbus:language:simple&quot;, 
&quot;${camelContext.getRouteStatus(&#39;myRoute&#39;)}&quot;, String.class);
+]]></script>
+</div></div><p><strong>Notice:</strong> its easier to use the 
<code>route</code> command to control lifecycle of routes. The 
<code>language</code> command allows you to execute a language script that has 
stronger powers such as <a shape="rect" href="groovy.html">Groovy</a> or to 
some extend the <a shape="rect" href="simple.html">Simple</a> 
language.</p><p>For example to shutdown Camel itself you can do:</p><div 
class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[template.sendBody(&quot;controlbus:language:simple?async=true&quot;,
 &quot;${camelContext.stop()}&quot;);
+]]></script>
+</div></div><p>Notice we use <code>async=true</code> to stop Camel 
asynchronously as otherwise we would be trying to stop Camel while it was 
in-flight processing the message we sent to the control bus component.</p>    
<div class="aui-message success shadowed information-macro">
                             <span class="aui-icon icon-success">Icon</span>
                 <div class="message-content">
-                            
-<p>You can also use other languages such as <a shape="rect" 
href="groovy.html">Groovy</a>, etc.</p>
+                            <p>You can also use other languages such as <a 
shape="rect" href="groovy.html">Groovy</a>, etc.</p>
                     </div>
     </div>
-
-
-<h3 id="ControlBusComponent-SeeAlso">See Also</h3>
-<ul><li><a shape="rect" href="configuring-camel.html">Configuring 
Camel</a></li><li><a shape="rect" 
href="component.html">Component</a></li><li><a shape="rect" 
href="endpoint.html">Endpoint</a></li><li><a shape="rect" 
href="getting-started.html">Getting Started</a></li></ul>
-<ul class="alternate"><li><a shape="rect" 
href="controlbus.html">ControlBus</a> EIP</li><li><a shape="rect" 
href="jmx.html">JMX</a> Component</li><li>Using <a shape="rect" 
href="camel-jmx.html">JMX</a> with Camel</li></ul></div>
+<p></p><h3 id="ControlBusComponent-SeeAlso">See Also</h3>
+<ul><li><a shape="rect" href="configuring-camel.html">Configuring 
Camel</a></li><li><a shape="rect" 
href="component.html">Component</a></li><li><a shape="rect" 
href="endpoint.html">Endpoint</a></li><li><a shape="rect" 
href="getting-started.html">Getting Started</a></li></ul><ul 
class="alternate"><li><a shape="rect" href="controlbus.html">ControlBus</a> 
EIP</li><li><a shape="rect" href="jmx.html">JMX</a> Component</li><li>Using <a 
shape="rect" href="camel-jmx.html">JMX</a> with Camel</li></ul></div>
         </td>
         <td valign="top">
           <div class="navigation">

Modified: websites/production/camel/content/controlbus.html
==============================================================================
--- websites/production/camel/content/controlbus.html (original)
+++ websites/production/camel/content/controlbus.html Sat Feb  7 09:18:03 2015
@@ -97,109 +97,38 @@ or use the event notifier which has an e
 
 <p>From Camel 2.11 onwards we have introduced a new <a shape="rect" 
href="controlbus-component.html">ControlBus Component</a> that allows you to 
send messages to a control bus <a shape="rect" 
href="endpoint.html">Endpoint</a> that reacts accordingly.</p>
 
-<h2 id="ControlBus-ControlBusComponent">ControlBus Component</h2>
-<p><strong>Available as of Camel 2.11</strong></p>
-
-<p>The <strong>controlbus:</strong> component provides easy management of 
Camel applications based on the <a shape="rect" href="controlbus.html">Control 
Bus</a> EIP pattern.<br clear="none">
-For example, by sending a message to an <a shape="rect" 
href="endpoint.html">Endpoint</a> you can control the lifecycle of routes, or 
gather performance statistics.</p>
-
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[
-controlbus:command[?options]
+<h2 id="ControlBus-ControlBusComponent">ControlBus 
Component</h2><p><strong>Available as of Camel 2.11</strong></p><p>The 
<strong>controlbus:</strong> component provides easy management of Camel 
applications based on the <a shape="rect" href="controlbus.html">Control 
Bus</a> EIP pattern.<br clear="none"> For example, by sending a message to an 
<a shape="rect" href="endpoint.html">Endpoint</a> you can control the lifecycle 
of routes, or gather performance statistics.</p><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[controlbus:command[?options]
 ]]></script>
-</div></div>
-
-<p>Where <strong>command</strong> can be any string to identify which type of 
command to use.</p>
-
-<h3 id="ControlBus-Commands">Commands </h3>
-<div class="confluenceTableSmall">
-<div class="table-wrap"><table class="confluenceTable"><tbody><tr><th 
colspan="1" rowspan="1" class="confluenceTh"><p> Command </p></th><th 
colspan="1" rowspan="1" class="confluenceTh"><p> Description 
</p></th></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p> 
<code>route</code> </p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p> To control routes using the <code>routeId</code> and 
<code>action</code> parameter. </p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p> <code>language</code> </p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p> Allows you to specify a <a shape="rect" 
href="language.html">Language</a> to use for evaluating the message body. If 
there is any result from the evaluation, then the result is put in the message 
body. </p></td></tr></tbody></table></div>
-</div>
-
-<h3 id="ControlBus-Options">Options</h3>
-<div class="confluenceTableSmall">
-<div class="table-wrap"><table class="confluenceTable"><tbody><tr><th 
colspan="1" rowspan="1" class="confluenceTh"><p> Name </p></th><th colspan="1" 
rowspan="1" class="confluenceTh"><p> Default Value </p></th><th colspan="1" 
rowspan="1" class="confluenceTh"><p> Description </p></th></tr><tr><td 
colspan="1" rowspan="1" class="confluenceTd"><p> <code>routeId</code> 
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> <code>null</code> 
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> To specify a 
route by its <code>id</code>. </p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p> <code>action</code> </p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p> <code>null</code> </p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p> To denote an action that can be either: 
<code>start</code>, <code>stop</code>, or <code>status</code>. To either start 
or stop a route, or to get the status of the route as output in the message 
body. You can use 
 <code>suspend</code> and <code>resume</code> from <strong>Camel 
2.11.1</strong> onwards to either suspend or resume a route. And from 
<strong>Camel 2.11.1</strong> onwards you can use <code>stats</code> to get 
performance statics returned in XML format; the <code>routeId</code> option can 
be used to define which route to get the performance stats for, if 
<code>routeId</code> is not defined, then you get statistics for the entire <a 
shape="rect" href="camelcontext.html">CamelContext</a>. </p></td></tr><tr><td 
colspan="1" rowspan="1" class="confluenceTd"><p> <code>async</code> 
</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p> 
<code>false</code> </p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p> Whether to execute the control bus task 
asynchronously. <strong>Important:</strong> If this option is enabled, then any 
result from the task is <strong>not</strong> set on the <a shape="rect" 
href="exchange.html">Exchange</a>. This is only possible if executing tasks sync
 hronously. </p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p> <code>loggingLevel</code> </p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p> <code>INFO</code> </p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p> Logging level used for logging when task 
is done, or if any exceptions occurred during processing the task. 
</p></td></tr></tbody></table></div>
-</div>
-
-<p>You can append query options to the URI in the following format, 
<code>?option=value&amp;option=value&amp;...</code></p>
-
-<h3 id="ControlBus-Samples">Samples</h3>
-
-<h4 id="ControlBus-Usingroutecommand">Using route command</h4>
-
-<p>The route command allows you to do common tasks on a given route very 
easily, for example to start a route, you can send an empty message to this 
endpoint:</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[
-template.sendBody(&quot;controlbus:route?routeId=foo&amp;action=start&quot;, 
null);
+</div></div><p>Where <strong>command</strong> can be any string to identify 
which type of command to use.</p><h3 id="ControlBus-Commands">Commands</h3><div 
class="confluenceTableSmall"><div class="table-wrap"><table 
class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" 
class="confluenceTh"><p>Command</p></th><th colspan="1" rowspan="1" 
class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>route</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>To control routes using the 
<code>routeId</code> and <code>action</code> parameter.</p></td></tr><tr><td 
colspan="1" rowspan="1" 
class="confluenceTd"><p><code>language</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>Allows you to specify a <a shape="rect" 
href="language.html">Language</a> to use for evaluating the message body. If 
there is any result from the evaluation, then the result is put in the message 
body.</p></td></tr></tbody></table>
 </div></div><h3 id="ControlBus-Options">Options</h3><div 
class="confluenceTableSmall"><div class="table-wrap"><table 
class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" 
class="confluenceTh"><p>Name</p></th><th colspan="1" rowspan="1" 
class="confluenceTh"><p>Default Value</p></th><th colspan="1" rowspan="1" 
class="confluenceTh"><p>Description</p></th></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>routeId</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p>To specify a route by its 
<code>id</code>.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>action</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>null</code></p></td><td colspan="1" rowspan="1" 
class="confluenceTd"><p>To denote an action that can be either: 
<code>start</code>, <code>stop, suspend, resume</code>, or <code>status</code>. 
To either start or stop 
 a route, or to get the status of the route as output in the message body. You 
can use <code>suspend</code> and <code>resume</code> from <strong>Camel 
2.11.1</strong> onwards to either suspend or resume a route. And from 
<strong>Camel 2.11.1</strong> onwards you can use <code>stats</code> to get 
performance statics returned in XML format; the <code>routeId</code> option can 
be used to define which route to get the performance stats for, if 
<code>routeId</code> is not defined, then you get statistics for the entire <a 
shape="rect" href="camelcontext.html">CamelContext</a>.</p></td></tr><tr><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>async</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p><code>false</code></p></td><td 
colspan="1" rowspan="1" class="confluenceTd"><p>Whether to execute the control 
bus task asynchronously. <strong>Important:</strong> If this option is enabled, 
then any result from the task is <strong>not</strong> set on the <a 
shape="rect" 
 href="exchange.html">Exchange</a>. This is only possible if executing tasks 
synchronously.</p></td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"><p><code>loggingLevel</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p><code>INFO</code></p></td><td colspan="1" 
rowspan="1" class="confluenceTd"><p>Logging level used for logging when task is 
done, or if any exceptions occurred during processing the 
task.</p></td></tr></tbody></table></div></div><p>You can append query options 
to the URI in the following format, 
<code>?option=value&amp;option=value&amp;...</code></p><h3 
id="ControlBus-Samples">Samples</h3><h4 id="ControlBus-Usingroutecommand">Using 
route command</h4><p>The route command allows you to do common tasks on a given 
route very easily, for example to start a route, you can send an empty message 
to this endpoint:</p><div class="code panel pdl" style="border-width: 
1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[template.sendBody(&quot;controlbus:route?routeId=foo&amp;action=start&quot;,
 null);
 ]]></script>
-</div></div>
-
-<p>To get the status of the route, you can do:</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[
-String status = 
template.requestBody(&quot;controlbus:route?routeId=foo&amp;action=status&quot;,
 null, String.class);
+</div></div><p>To get the status of the route, you can do:</p><div class="code 
panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[String status = 
template.requestBody(&quot;controlbus:route?routeId=foo&amp;action=status&quot;,
 null, String.class);
 ]]></script>
-</div></div>
-
-
-<h5 id="ControlBus-Gettingperformancestatistics">Getting performance 
statistics</h5>
-<p><strong>Available as of Camel 2.11.1</strong></p>
-
-<p>This requires JMX to be enabled (is by default) then you can get the 
performance statics per route, or for the <a shape="rect" 
href="camelcontext.html">CamelContext</a>. For example to get the statics for a 
route named foo, we can do:</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[
-String xml = 
template.requestBody(&quot;controlbus:route?routeId=foo&amp;action=stats&quot;, 
null, String.class);
+</div></div><h5 id="ControlBus-Gettingperformancestatistics">Getting 
performance statistics</h5><p><strong>Available as of Camel 
2.11.1</strong></p><p>This requires JMX to be enabled (is by default) then you 
can get the performance statics per route, or for the <a shape="rect" 
href="camelcontext.html">CamelContext</a>. For example to get the statics for a 
route named foo, we can do:</p><div class="code panel pdl" style="border-width: 
1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[String xml = 
template.requestBody(&quot;controlbus:route?routeId=foo&amp;action=stats&quot;, 
null, String.class);
 ]]></script>
-</div></div>
-
-<p>The returned statics is in XML format. Its the same data you can get from 
JMX with the <code>dumpRouteStatsAsXml</code> operation on the 
<code>ManagedRouteMBean</code>.</p>
-
-<p>To get statics for the entire <a shape="rect" 
href="camelcontext.html">CamelContext</a> you just omit the routeId parameter 
as shown below:</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[
-String xml = template.requestBody(&quot;controlbus:route?action=stats&quot;, 
null, String.class);
+</div></div><p>The returned statics is in XML format. Its the same data you 
can get from JMX with the <code>dumpRouteStatsAsXml</code> operation on the 
<code>ManagedRouteMBean</code>.</p><p>To get statics for the entire <a 
shape="rect" href="camelcontext.html">CamelContext</a> you just omit the 
routeId parameter as shown below:</p><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[String xml = 
template.requestBody(&quot;controlbus:route?action=stats&quot;, null, 
String.class);
 ]]></script>
-</div></div>
-
-
-<h4 id="ControlBus-Usinglanguage">Using <a shape="rect" 
href="simple.html">Simple</a> language</h4>
-
-<p>You can use the <a shape="rect" href="simple.html">Simple</a> language with 
the control bus, for example to stop a specific route, you can send a message 
to the <code>"controlbus:language:simple"</code> endpoint containing the 
following message:</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[
-template.sendBody(&quot;controlbus:language:simple&quot;, 
&quot;${camelContext.stopRoute(&#39;myRoute&#39;)}&quot;);
+</div></div><h4 id="ControlBus-Usinglanguage">Using <a shape="rect" 
href="simple.html">Simple</a> language</h4><p>You can use the <a shape="rect" 
href="simple.html">Simple</a> language with the control bus, for example to 
stop a specific route, you can send a message to the 
<code>"controlbus:language:simple"</code> endpoint containing the following 
message:</p><div class="code panel pdl" style="border-width: 1px;"><div 
class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[template.sendBody(&quot;controlbus:language:simple&quot;,
 &quot;${camelContext.stopRoute(&#39;myRoute&#39;)}&quot;);
 ]]></script>
-</div></div>
-
-<p>As this is a void operation, no result is returned. However, if you want 
the route status you can do:</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[
-String status = template.requestBody(&quot;controlbus:language:simple&quot;, 
&quot;${camelContext.getRouteStatus(&#39;myRoute&#39;)}&quot;, String.class);
+</div></div><p>As this is a void operation, no result is returned. However, if 
you want the route status you can do:</p><div class="code panel pdl" 
style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[String status = 
template.requestBody(&quot;controlbus:language:simple&quot;, 
&quot;${camelContext.getRouteStatus(&#39;myRoute&#39;)}&quot;, String.class);
 ]]></script>
-</div></div>
-
-<p><strong>Notice:</strong> its easier to use the <code>route</code> command 
to control lifecycle of routes. The <code>language</code> command allows you to 
execute a language script that has stronger powers such as <a shape="rect" 
href="groovy.html">Groovy</a> or to some extend the <a shape="rect" 
href="simple.html">Simple</a> language. </p>
-
-<p>For example to shutdown Camel itself you can do:</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
-<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[
-template.sendBody(&quot;controlbus:language:simple?async=true&quot;, 
&quot;${camelContext.stop()}&quot;);
+</div></div><p><strong>Notice:</strong> its easier to use the 
<code>route</code> command to control lifecycle of routes. The 
<code>language</code> command allows you to execute a language script that has 
stronger powers such as <a shape="rect" href="groovy.html">Groovy</a> or to 
some extend the <a shape="rect" href="simple.html">Simple</a> 
language.</p><p>For example to shutdown Camel itself you can do:</p><div 
class="code panel pdl" style="border-width: 1px;"><div class="codeContent 
panelContent pdl">
+<script class="theme: Default; brush: java; gutter: false" 
type="syntaxhighlighter"><![CDATA[template.sendBody(&quot;controlbus:language:simple?async=true&quot;,
 &quot;${camelContext.stop()}&quot;);
 ]]></script>
-</div></div>
-<p>Notice we use <code>async=true</code> to stop Camel asynchronously as 
otherwise we would be trying to stop Camel while it was in-flight processing 
the message we sent to the control bus component.</p>
-
-    <div class="aui-message success shadowed information-macro">
+</div></div><p>Notice we use <code>async=true</code> to stop Camel 
asynchronously as otherwise we would be trying to stop Camel while it was 
in-flight processing the message we sent to the control bus component.</p>    
<div class="aui-message success shadowed information-macro">
                             <span class="aui-icon icon-success">Icon</span>
                 <div class="message-content">
-                            
-<p>You can also use other languages such as <a shape="rect" 
href="groovy.html">Groovy</a>, etc.</p>
+                            <p>You can also use other languages such as <a 
shape="rect" href="groovy.html">Groovy</a>, etc.</p>
                     </div>
     </div>
-
-
-<h3 id="ControlBus-SeeAlso">See Also</h3>
-<ul><li><a shape="rect" href="configuring-camel.html">Configuring 
Camel</a></li><li><a shape="rect" 
href="component.html">Component</a></li><li><a shape="rect" 
href="endpoint.html">Endpoint</a></li><li><a shape="rect" 
href="getting-started.html">Getting Started</a></li></ul>
-<ul class="alternate"><li><a shape="rect" 
href="controlbus.html">ControlBus</a> EIP</li><li><a shape="rect" 
href="jmx.html">JMX</a> Component</li><li>Using <a shape="rect" 
href="camel-jmx.html">JMX</a> with Camel</li></ul>
+<p></p><h3 id="ControlBus-SeeAlso">See Also</h3>
+<ul><li><a shape="rect" href="configuring-camel.html">Configuring 
Camel</a></li><li><a shape="rect" 
href="component.html">Component</a></li><li><a shape="rect" 
href="endpoint.html">Endpoint</a></li><li><a shape="rect" 
href="getting-started.html">Getting Started</a></li></ul><ul 
class="alternate"><li><a shape="rect" href="controlbus.html">ControlBus</a> 
EIP</li><li><a shape="rect" href="jmx.html">JMX</a> Component</li><li>Using <a 
shape="rect" href="camel-jmx.html">JMX</a> with Camel</li></ul>
 
 <h4 id="ControlBus-UsingThisPattern">Using This Pattern</h4>
 


Reply via email to