Author: buildbot
Date: Mon Mar 14 20:18:33 2016
New Revision: 982781
Log:
Production update by buildbot for camel
Modified:
websites/production/camel/content/cache/main.pageCache
websites/production/camel/content/dataset.html
Modified: websites/production/camel/content/cache/main.pageCache
==============================================================================
Binary files - no diff available.
Modified: websites/production/camel/content/dataset.html
==============================================================================
--- websites/production/camel/content/dataset.html (original)
+++ websites/production/camel/content/dataset.html Mon Mar 14 20:18:33 2016
@@ -88,7 +88,7 @@
<div class="wiki-content maincontent"><h2
id="DataSet-DataSetComponent">DataSet Component</h2><p><a shape="rect"
href="testing.html">Testing</a> of distributed and asynchronous processing is
notoriously difficult. The <a shape="rect" href="mock.html">Mock</a>, <a
shape="rect" href="test.html">Test</a> and <a shape="rect"
href="dataset.html">DataSet</a> endpoints work great with the <a shape="rect"
href="testing.html">Camel Testing Framework</a> to simplify your unit and
integration testing using <a shape="rect"
href="enterprise-integration-patterns.html">Enterprise Integration Patterns</a>
and Camel's large range of <a shape="rect"
href="components.html">Components</a> together with the powerful <a
shape="rect" href="bean-integration.html">Bean Integration</a>.</p><p>The
DataSet component provides a mechanism to easily perform load & soak
testing of your system. It works by allowing you to create <a shape="rect"
class="external-link" href="http://camel.apache.org/maven/current/c
amel-core/apidocs/org/apache/camel/component/dataset/DataSet.html">DataSet
instances</a> both as a source of messages and as a way to assert that the data
set is received.</p><p>Camel will use the <a shape="rect"
href="log.html">throughput logger</a> when sending dataset's.</p><h3
id="DataSet-URIformat">URI format</h3><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[dataset:name[?options]
]]></script>
-</div></div><p>Where <strong>name</strong> is used to find the <a shape="rect"
class="external-link"
href="http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/component/dataset/DataSet.html">DataSet
instance</a> in the <a shape="rect"
href="registry.html">Registry</a></p><p>Camel ships with a support
implementation of <code>org.apache.camel.component.dataset.DataSet</code>, the
<code>org.apache.camel.component.dataset.DataSetSupport</code> class, that can
be used as a base for implementing your own DataSet. Camel also ships with a
default implementation, the
<code>org.apache.camel.component.dataset.SimpleDataSet</code> that can be used
for testing.</p><h3 id="DataSet-Options">Options</h3><div
class="confluenceTableSmall"><div class="table-wrap"><table
class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1"
class="confluenceTh"><p>Option</p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p>Default</p></th><th colspan="1" rowspan="1"
class="confluen
ceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p><code>produceDelay</code></p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>3</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>Allows a delay in ms to be specified, which causes
producers to pause in order to simulate slow producers. Uses a minimum of 3 ms
delay unless you set this option to -1 to force no delay at
all.</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p><code>consumeDelay</code></p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>0</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>Allows a delay in ms to be specified, which causes
consumers to pause in order to simulate slow consumers.</p></td></tr><tr><td
colspan="1" rowspan="1"
class="confluenceTd"><p><code>preloadSize</code></p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>0</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>Sets how many messages s
hould be preloaded (sent) before the route completes its
initialization.</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p><code>initialDelay</code></p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>1000</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p><strong>Camel 2.1:</strong> Time period in millis to
wait before starting sending messages.</p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p><code>minRate</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>0</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>Wait until the DataSet contains at least
this number of messages</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><code>dataSetIndex</code></td><td colspan="1" rowspan="1"
class="confluenceTd">lenient</td><td colspan="1" rowspan="1"
class="confluenceTd"><p><strong>Camel 2.17:</strong> Controls the behavior of
the <em>CamelDataSetIndex</em> header. The supported values are <code>st
rict</code>, <code>lenient</code> and <code>off</code>. The default behavior
prior to <strong>Camel 2.17</strong> can be restored using
<code><span>dataSetIndex</span>=strict</code></p><p>For consumers:<br
clear="none"> - <code>strict</code> or <code>lenient</code> => The
<em>CamelDataSetIndex</em> header will always be set<br clear="none"> -
<code>off</code> => The <em>CamelDataSetIndex</em> header will not be
set</p><p>For producers:<br clear="none"> - <code>strict</code> => The
<em>CamelDataSetIndex</em> header must be present and the value of the header
will be verified<br clear="none"> - <code>lenient</code> => If the
<em>CamelDataSetIndex</em> header is present, the value of the header will be
verified. If the header is not present, it will be set.<br clear="none"> -
<code>off</code> => If the <em>CamelDataSetIndex</em> header is
present, the value of the header will not be verified. If the header is not
present, it will not be set.</p><p> </p></td></t
r></tbody></table></div></div><p>You can append query options to the URI in
the following format,
<code>?option=value&option=value&...</code></p><h3
id="DataSet-ConfiguringDataSet">Configuring DataSet</h3><p>Camel will lookup in
the <a shape="rect" href="registry.html">Registry</a> for a bean implementing
the DataSet interface. So you can register your own DataSet as:</p><div
class="code panel pdl" style="border-width: 1px;"><div class="codeContent
panelContent pdl">
+</div></div><p>Where <strong>name</strong> is used to find the <a shape="rect"
class="external-link"
href="http://camel.apache.org/maven/current/camel-core/apidocs/org/apache/camel/component/dataset/DataSet.html">DataSet
instance</a> in the <a shape="rect"
href="registry.html">Registry</a></p><p>Camel ships with a support
implementation of <code>org.apache.camel.component.dataset.DataSet</code>, the
<code>org.apache.camel.component.dataset.DataSetSupport</code> class, that can
be used as a base for implementing your own DataSet. Camel also ships with a
default implementation, the
<code>org.apache.camel.component.dataset.SimpleDataSet</code> that can be used
for testing.</p><h3 id="DataSet-Options">Options</h3><div
class="confluenceTableSmall"><div class="table-wrap"><table
class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1"
class="confluenceTh"><p>Option</p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p>Default</p></th><th colspan="1" rowspan="1"
class="confluen
ceTh"><p>Description</p></th></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p><code>produceDelay</code></p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>3</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>Allows a delay in ms to be specified, which causes
producers to pause in order to simulate slow producers. Uses a minimum of 3 ms
delay unless you set this option to -1 to force no delay at
all.</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p><code>consumeDelay</code></p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>0</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>Allows a delay in ms to be specified, which causes
consumers to pause in order to simulate slow consumers.</p></td></tr><tr><td
colspan="1" rowspan="1"
class="confluenceTd"><p><code>preloadSize</code></p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>0</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>Sets how many messages s
hould be preloaded (sent) before the route completes its
initialization.</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><p><code>initialDelay</code></p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>1000</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p><strong>Camel 2.1:</strong> Time period in millis to
wait before starting sending messages.</p></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p><code>minRate</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>0</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>Wait until the DataSet contains at least
this number of messages</p></td></tr><tr><td colspan="1" rowspan="1"
class="confluenceTd"><code>dataSetIndex</code></td><td colspan="1" rowspan="1"
class="confluenceTd"><code>lenient</code></td><td colspan="1" rowspan="1"
class="confluenceTd"><p><strong>Camel 2.17:</strong> Controls the behavior of
the <em>CamelDataSetIndex</em> header. The supported values
are <code>strict</code>, <code>lenient</code> and <code>off</code>. The
default behavior prior to <strong>Camel 2.17</strong> can be restored using
<code><span>dataSetIndex</span>=strict</code></p><p>For consumers:<br
clear="none"> - <code>strict</code> or <code>lenient</code> => The
<em>CamelDataSetIndex</em> header will always be set<br clear="none"> -
<code>off</code> => The <em>CamelDataSetIndex</em> header will not be
set</p><p>For producers:<br clear="none"> - <code>strict</code> => The
<em>CamelDataSetIndex</em> header must be present and the value of the header
will be verified<br clear="none"> - <code>lenient</code> => If the
<em>CamelDataSetIndex</em> header is present, the value of the header will be
verified. If the header is not present, it will be set.<br clear="none"> -
<code>off</code> => If the <em>CamelDataSetIndex</em> header is
present, the value of the header will not be verified. If the header is not
present, it will not be set.</p></td></t
r></tbody></table></div></div><p>You can append query options to the URI in
the following format,
<code>?option=value&option=value&...</code></p><h3
id="DataSet-ConfiguringDataSet">Configuring DataSet</h3><p>Camel will lookup in
the <a shape="rect" href="registry.html">Registry</a> for a bean implementing
the DataSet interface. So you can register your own DataSet as:</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[ <bean id="myDataSet"
class="com.mycompany.MyDataSet">
<property name="size" value="100"/>
</bean>