You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by bu...@apache.org on 2017/06/20 18:19:48 UTC

svn commit: r1014289 - in /websites/production/camel/content: cache/main.pageCache controlbus-component.html controlbus.html eventnotifier-to-log-details-about-all-sent-exchanges.html

Author: buildbot
Date: Tue Jun 20 18:19:48 2017
New Revision: 1014289

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
    websites/production/camel/content/eventnotifier-to-log-details-about-all-sent-exchanges.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 Tue Jun 20 18:19:48 2017
@@ -84,37 +84,37 @@
 	<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">
+<div class="wiki-content maincontent"><h2 id="ControlBusComponent-ControlBusComponent">ControlBus Component</h2><p><strong>Available as of Camel 2.11</strong></p><p>The&#160;<strong><code>controlbus:</code></strong> component provides easy management of Camel applications based on the <a shape="rect" href="controlbus.html">Control Bus</a> EIP pattern. 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="brush: java; gutter: false; theme: Default" 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>
+</div></div><p>Where <strong><code>command</code></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 <strong><code>routeId</code></strong> and <strong><code>action</code></strong> 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.</p><p>The result, if any, is returned 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>. The special keyword "current" indicates the current route.</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>
+<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 <strong><code>id</code></strong>. The special keyword&#160;<strong><code>current</code></strong> indicates the current route.</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>Can be one of:</p><ul><li><code>start<
 /code></li><li><code>stop</code></li><li><code>suspend</code></li><li><code>resume</code></li><li><code>status</code></li><li><code>stats</code></li></ul><p>To either start or stop a route, or to get the status of the route as output in the message body.</p><p>From <strong>Camel 2.11.1</strong>: use <strong><code>suspend</code></strong> and <strong><code>resume</code></strong> to either suspend or resume a route or <strong><code>stats</code></strong> to get performance statistics, in XML format, for the route whose id is given by the <strong><code>routeId</code></strong> option. If <strong><code>routeId</code></strong> is not defined, then statistics for the entire <a shape="rect" href="camelcontext.html">CamelContext</a> will be returned.</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 t
 he control bus task asynchronously.</p><div class="confluence-information-macro confluence-information-macro-warning"><span class="aui-icon aui-icon-small aui-iconfont-error confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p><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></div></div></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">
+<p>You can append query options to the URI in the following format, <strong><code>?option=value&amp;option=value&amp;...</code></strong></p><h3 id="ControlBusComponent-Examples">Examples</h3><h4 id="ControlBusComponent-UsingtherouteCommand">Using the&#160;<code>route</code> 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="brush: java; gutter: false; theme: Default" 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="brush: java; gutter: false; theme: Default" 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">
+</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 <strong><code>foo</code></strong>, we can do:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <script class="brush: java; gutter: false; theme: Default" 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">
+</div></div><p>The returned statics is in XML format. Its the same data you can get from JMX with the <strong><code>dumpRouteStatsAsXml</code></strong> operation on the <strong><code>ManagedRouteMBean</code></strong>.</p><p>To get statics for the entire <a shape="rect" href="camelcontext.html">CamelContext</a> you just omit the&#160;<strong><code>routeId</code></strong> parameter as shown below:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <script class="brush: java; gutter: false; theme: Default" 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">
+</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 <strong><code>controlbus:language:simple</code></strong> endpoint containing the following message:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <script class="brush: java; gutter: false; theme: Default" 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="brush: java; gutter: false; theme: Default" 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">
+</div></div><p><strong>Notice:</strong> its easier to use the <strong><code>route</code></strong> 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="brush: java; gutter: false; theme: Default" 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="confluence-information-macro confluence-information-macro-tip"><span class="aui-icon aui-icon-small aui-iconfont-approve confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>You can also use other languages such as <a shape="rect" href="groovy.html">Groovy</a>, etc.</p></div></div><p></p><h3 id="ControlBusComponent-SeeAlso">See Also</h3>
+</div></div><p>Notice we use <strong><code>async=true</code></strong> 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="confluence-information-macro confluence-information-macro-tip"><span class="aui-icon aui-icon-small aui-iconfont-approve confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>You can also use other languages such as <a shape="rect" href="groovy.html">Groovy</a>, etc.</p></div></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">

Modified: websites/production/camel/content/controlbus.html
==============================================================================
--- websites/production/camel/content/controlbus.html (original)
+++ websites/production/camel/content/controlbus.html Tue Jun 20 18:19:48 2017
@@ -97,37 +97,37 @@ 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">
+<h2 id="ControlBus-ControlBusComponent">ControlBus Component</h2><p><strong>Available as of Camel 2.11</strong></p><p>The&#160;<strong><code>controlbus:</code></strong> component provides easy management of Camel applications based on the <a shape="rect" href="controlbus.html">Control Bus</a> EIP pattern. 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="brush: java; gutter: false; theme: Default" 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>
+</div></div><p>Where <strong><code>command</code></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 <strong><code>routeId</code></strong> and <strong><code>action</code></strong> 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.</p><p>The result, if any, is returned in the message body.</p></td></t
 r></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>. The special keyword "current" indicates the current route.</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>, o
 r <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>
+<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 <strong><code>id</code></strong>. The special keyword&#160;<strong><code>current</code></strong> indicates the current route.</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>Can be one of:</p><ul><li><code>start</code></l
 i><li><code>stop</code></li><li><code>suspend</code></li><li><code>resume</code></li><li><code>status</code></li><li><code>stats</code></li></ul><p>To either start or stop a route, or to get the status of the route as output in the message body.</p><p>From <strong>Camel 2.11.1</strong>: use <strong><code>suspend</code></strong> and <strong><code>resume</code></strong> to either suspend or resume a route or <strong><code>stats</code></strong> to get performance statistics, in XML format, for the route whose id is given by the <strong><code>routeId</code></strong> option. If <strong><code>routeId</code></strong> is not defined, then statistics for the entire <a shape="rect" href="camelcontext.html">CamelContext</a> will be returned.</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 contro
 l bus task asynchronously.</p><div class="confluence-information-macro confluence-information-macro-warning"><span class="aui-icon aui-icon-small aui-iconfont-error confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p><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></div></div></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">
+<p>You can append query options to the URI in the following format, <strong><code>?option=value&amp;option=value&amp;...</code></strong></p><h3 id="ControlBus-Examples">Examples</h3><h4 id="ControlBus-UsingtherouteCommand">Using the&#160;<code>route</code> 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="brush: java; gutter: false; theme: Default" 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="brush: java; gutter: false; theme: Default" 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">
+</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 <strong><code>foo</code></strong>, we can do:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <script class="brush: java; gutter: false; theme: Default" 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">
+</div></div><p>The returned statics is in XML format. Its the same data you can get from JMX with the <strong><code>dumpRouteStatsAsXml</code></strong> operation on the <strong><code>ManagedRouteMBean</code></strong>.</p><p>To get statics for the entire <a shape="rect" href="camelcontext.html">CamelContext</a> you just omit the&#160;<strong><code>routeId</code></strong> parameter as shown below:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <script class="brush: java; gutter: false; theme: Default" 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">
+</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 <strong><code>controlbus:language:simple</code></strong> endpoint containing the following message:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <script class="brush: java; gutter: false; theme: Default" 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="brush: java; gutter: false; theme: Default" 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">
+</div></div><p><strong>Notice:</strong> its easier to use the <strong><code>route</code></strong> 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="brush: java; gutter: false; theme: Default" 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="confluence-information-macro confluence-information-macro-tip"><span class="aui-icon aui-icon-small aui-iconfont-approve confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>You can also use other languages such as <a shape="rect" href="groovy.html">Groovy</a>, etc.</p></div></div><p></p><h3 id="ControlBus-SeeAlso">See Also</h3>
+</div></div><p>Notice we use <strong><code>async=true</code></strong> 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="confluence-information-macro confluence-information-macro-tip"><span class="aui-icon aui-icon-small aui-iconfont-approve confluence-information-macro-icon"></span><div class="confluence-information-macro-body"><p>You can also use other languages such as <a shape="rect" href="groovy.html">Groovy</a>, etc.</p></div></div><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>

Modified: websites/production/camel/content/eventnotifier-to-log-details-about-all-sent-exchanges.html
==============================================================================
--- websites/production/camel/content/eventnotifier-to-log-details-about-all-sent-exchanges.html (original)
+++ websites/production/camel/content/eventnotifier-to-log-details-about-all-sent-exchanges.html Tue Jun 20 18:19:48 2017
@@ -86,12 +86,7 @@
 	<tbody>
         <tr>
         <td valign="top" width="100%">
-<div class="wiki-content maincontent"><h2 id="EventNotifiertologdetailsaboutallsentExchanges-EventNotifiertologdetailsaboutallsentExchanges">EventNotifier to log details about all sent Exchanges</h2>
-
-<p>If you want to log information all time taken to send and receive replies when sending to external endpoints, then you can leverage the <code>EventNotifier</code> in Camel. It allows you to subscribe to events and react upon them.</p>
-
-<p>For example we want to log the time it takes to send to endpoints which can be done by implementing a class which this logic as follows:</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;"><b>MyLoggingSentEventNotifier</b></div><div class="codeContent panelContent pdl">
+<div class="wiki-content maincontent"><h2 id="EventNotifiertologdetailsaboutallsentExchanges-EventNotifiertologdetailsaboutallsentExchanges"><code>EventNotifier</code> to log details about all sent Exchanges</h2><p>If you want to log information all time taken to send and receive replies when sending to external endpoints, then you can leverage the <strong><code>EventNotifier</code></strong> in Camel. It allows you to subscribe to events and react upon them.</p><p>For example we want to log the time it takes to send to endpoints which can be done by implementing a class which this logic as follows:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeHeader panelHeader pdl" style="border-bottom-width: 1px;"><b>MyLoggingSentEventNotifier</b></div><div class="codeContent panelContent pdl">
 <script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 public class MyLoggingSentEventNotifer extends EventNotifierSupport {
 
@@ -119,17 +114,10 @@ public class MyLoggingSentEventNotifer e
 
 }
 ]]></script>
-</div></div>
-
-<p>Then in Java DSL you can tell Camel to use your custom <code>EventNotifier</code> simply by adding it:</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
-context.getManagementStrategy().addEventNotifier(new MyLoggingSentEventNotifer());
+</div></div>Then in Java DSL you can tell Camel to use your custom <code>EventNotifier</code> simply by adding it:<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[context.getManagementStrategy().addEventNotifier(new MyLoggingSentEventNotifer());
 ]]></script>
-</div></div> 
-
-<p>And in Spring XML you declare a Spring bean and Camel will automatic pick it up:</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+</div></div><p>And in Spring XML you declare a Spring bean and Camel will automatically pick it up:</p><div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
 <script class="brush: xml; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
 &lt;bean id=&quot;myLoggingEventNotifier&quot; class=&quot;org.apache.camel.processor.MyLoggingSentEventNotifer&quot;/&gt;
 
@@ -148,27 +136,13 @@ context.getManagementStrategy().addEvent
 
 &lt;/camelContext&gt;
 ]]></script>
-</div></div>
-
-<p>If you run this example you will notice how Camel logs this now:</p>
-<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
-<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[
-INFO  CamelContextFactoryBean        - Using custom EventNotifier with id: myLoggingEventNotifier and implementation: org.apache.camel.processor.MyLoggingSentEventNotifer@76bf9e
+</div></div>If you run this example you will notice how Camel logs this now:<div class="code panel pdl" style="border-width: 1px;"><div class="codeContent panelContent pdl">
+<script class="brush: java; gutter: false; theme: Default" type="syntaxhighlighter"><![CDATA[INFO  CamelContextFactoryBean        - Using custom EventNotifier with id: myLoggingEventNotifier and implementation: org.apache.camel.processor.MyLoggingSentEventNotifer@76bf9e
 INFO  MyLoggingSentEventNotifer      - Took 1001 millis to send to: Endpoint[direct://bar]
 INFO  MyLoggingSentEventNotifer      - Took 0 millis to send to: Endpoint[mock://result]
 INFO  MyLoggingSentEventNotifer      - Took 1013 millis to send to: Endpoint[direct://start]
 ]]></script>
-</div></div>
-
-<p>You can implement logic to filter which endpoints to log, and maybe also thresholds to skip logging if it was fast, e.g. &lt; 1 sec.<br clear="none">
-Then you have a logger which logs all <em>slow</em> events.</p>
-
-<p>Tip you can use the <code>EndpointHelper.matchEndpoint</code> method to leverage the same filtering capabilities that for example the <a shape="rect" href="intercept.html">Intercept</a> uses in Camel.</p>
-
-<p>You can see which <code>EventObject</code> Camel provides from the <a shape="rect" class="external-link" href="http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/management/event/package-summary.html">javadoc</a>.</p>
-
-<p>From Camel 2.10 onwards there is also a <code>ExchangeSendingEvent</code> which is an event triggered before sending the message to the endpoint. Then we have an even for both before and after sending the message.</p>
-</div>
+</div></div><p>You can implement logic to filter which endpoints to log, and maybe also thresholds to skip logging if it was fast, e.g. &lt; 1 sec. Then you have a logger which logs all <em>slow</em> events.</p><div class="confluence-information-macro confluence-information-macro-information"><span class="aui-icon aui-icon-small aui-iconfont-info confluence-information-macro-icon"></span><div class="confluence-information-macro-body">Tip you can use the <strong><code>EndpointHelper.matchEndpoint</code></strong> method to leverage the same filtering capabilities that for example the <a shape="rect" href="intercept.html">Intercept</a> uses in Camel.</div></div><p>You can see which <strong><code>EventObject</code></strong> Camel provides from the <a shape="rect" class="external-link" href="http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/management/event/package-summary.html">javadoc</a>.</p><p>From <strong>Camel 2.10</strong>: there is also a <strong><code>Exc
 hangeSendingEvent</code></strong> which is an event triggered before sending the message to the endpoint. Then we have an even for both before and after sending the message.</p></div>
         </td>
         <td valign="top">
           <div class="navigation">