camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r919605 - in /websites/production/camel/content: cache/main.pageCache metrics-component.html
Date Sun, 17 Aug 2014 09:17:53 GMT
Author: buildbot
Date: Sun Aug 17 09:17:53 2014
New Revision: 919605

Log:
Production update by buildbot for camel

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

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

Modified: websites/production/camel/content/metrics-component.html
==============================================================================
--- websites/production/camel/content/metrics-component.html (original)
+++ websites/production/camel/content/metrics-component.html Sun Aug 17 09:17:53 2014
@@ -217,7 +217,7 @@ from("direct:in")
 </div></div><p>And from XML DSL you define a &lt;bean&gt; as follows:</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[
 &lt;!-- use camel-metrics route policy to gather metrics for all routes --&gt;
   &lt;bean id=&quot;metricsRoutePolicyFactory&quot; class=&quot;org.apache.camel.component.metrics.routepolicy.MetricsRoutePolicyFactory&quot;/&gt;]]></script>
-</div></div><p>The&#160;<code>MetricsRoutePolicyFactory</code>
and&#160;<code>MetricsRoutePolicy</code> supports the following options:</p><div
class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1"
rowspan="1" class="confluenceTh">Name</th><th colspan="1" rowspan="1" class="confluenceTh">Default</th><th
colspan="1" rowspan="1" class="confluenceTh">Description</th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd">useJmx</td><td colspan="1" rowspan="1"
class="confluenceTd">true</td><td colspan="1" rowspan="1" class="confluenceTd">Whether
to report the statistics to JMX</td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd">jmxDomain</td><td colspan="1" rowspan="1" class="confluenceTd">org.apache.camel.metrics</td><td
colspan="1" rowspan="1" class="confluenceTd">The JMX domain name</td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd">metricsRegistry</td><td colspan="1"
rowspan="1" class="confluenceTd">&#160;</td><td colspan="1" rowspan="1"
  class="confluenceTd">Allow to use a shared <code>com.codahale.metrics.MetricRegistry</code>.
If none is provided then Camel will create a shared instance used by the this CamelContext.</td></tr></tbody></table></div><p>&#160;</p><p>From
Java code tou can get hold of the&#160;<code>com.codahale.metrics.MetricRegistry</code><span>&#160;from
the <code>org.apache.camel.component.metrics.routepolicy.MetricsRegistryService</code>
as shown below:</span></p><div class="code panel pdl" style="border-width:
1px;"><div class="codeContent panelContent pdl">
+</div></div><p>The&#160;<code>MetricsRoutePolicyFactory</code>
and&#160;<code>MetricsRoutePolicy</code> supports the following options:</p><div
class="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1"
rowspan="1" class="confluenceTh">Name</th><th colspan="1" rowspan="1" class="confluenceTh">Default</th><th
colspan="1" rowspan="1" class="confluenceTh">Description</th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd">useJmx</td><td colspan="1" rowspan="1"
class="confluenceTd">false</td><td colspan="1" rowspan="1" class="confluenceTd">Whether
to report fine grained statistics to JMX by using the <code>com.codahale.metrics.JmxReporter</code>.<br
clear="none">Notice that if JMX is enabled on <a shape="rect" href="camelcontext.html">CamelContext</a>
then a <code>MetricsRegistryService</code> mbean is enlisted under the services
type in the JMX tree. That mbean has a single operation to output the statistics using json.
Setting <code>useJmx</code> to true is onl
 y needed if you want fine grained mbeans per statistics type.</td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd">jmxDomain</td><td colspan="1" rowspan="1"
class="confluenceTd">org.apache.camel.metrics</td><td colspan="1" rowspan="1"
class="confluenceTd">The JMX domain name</td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd">prettyPrint</td><td colspan="1" rowspan="1" class="confluenceTd">false</td><td
colspan="1" rowspan="1" class="confluenceTd">Whether to use pretty print when outputting
statistics in json format</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd">metricsRegistry</td><td
colspan="1" rowspan="1" class="confluenceTd">&#160;</td><td colspan="1" rowspan="1"
class="confluenceTd">Allow to use a shared <code>com.codahale.metrics.MetricRegistry</code>.
If none is provided then Camel will create a shared instance used by the this CamelContext.</td></tr></tbody></table></div><p>&#160;</p><p>From
Java code tou can get hold of the&#160;<code>com.
 codahale.metrics.MetricRegistry</code><span>&#160;from the <code>org.apache.camel.component.metrics.routepolicy.MetricsRegistryService</code>
as shown below:</span></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[MetricRegistryService
registryService = context.hasService(MetricsRegistryService.class);
 if (registryService != null) {
   MetricsRegistry registry = registryService.getMetricsRegistry();



Mime
View raw message