camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r982871 - in /websites/production/camel/content: cache/main.pageCache dataset.html
Date Tue, 15 Mar 2016 17:19:40 GMT
Author: buildbot
Date: Tue Mar 15 17:19:40 2016
New Revision: 982871

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 Tue Mar 15 17:19:40 2016
@@ -100,7 +100,7 @@ from("dataset:foo").to("a
 // now lets test that the messages are consumed correctly
 from("activemq:SomeQueue").to("dataset:foo");
 ]]></script>
-</div></div><p>The above would look in the <a shape="rect" href="registry.html">Registry</a>
to find the <strong>foo</strong> DataSet instance which is used to create the
messages.</p><p>Then you create a DataSet implementation, such as using the <code>SimpleDataSet</code>
as described below, configuring things like how big the data set is and what the messages
look like etc. &#160;</p><p>&#160;</p><h2 id="DataSet-DataSetSupport(abstractclass)"><code>DataSetSupport</code>&#160;(abstract
class)</h2><p>The DataSetSupport abstract class is a nice starting point for new
DataSets, and provides some useful features to derived classes.</p><h3 id="DataSet-PropertiesonDataSetSupport">Properties
on DataSetSupport</h3><div class="confluenceTableSmall"><div class="table-wrap"><table
class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Property</p></th><th
colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1"
rowspan="1" class="confluenceT
 h"><p>Default</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>defaultHeaders</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>Map&lt;String,Object&gt;</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Specifies the default message body.
For SimpleDataSet it is a constant payload; though if you want to create custom payloads per
message, create your own derivation of <code>DataSetSupport</code>.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>outputTransformer</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>org.apache.camel.Processor</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><span style="font-family: monospace;">null</span></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>&#160;</p><
 /td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>size</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>long</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>10</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Specifies how many messages to send/consume.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><code>reportCount</code></td><td
colspan="1" rowspan="1" class="confluenceTd"><code>long</code></td><td
colspan="1" rowspan="1" class="confluenceTd"><code>-1</code></td><td
colspan="1" rowspan="1" class="confluenceTd"><span>Specifies the number of messages
to be received before reporting progress. Useful for showing progress of a large load test.
If &lt; 0, then </span><code>size</code><span> / 5, if is 0 then
</span><code>size</code><span>, else set to </span><code>reportCount</code><span>
value.</span></td></tr></tbody></table></div></div><h3
id="DataSet-SimpleDataSet"><code>Simpl
 eDataSet</code></h3><p>The <code>SimpleDataSet</code> extends
<code>DataSetSupport</code>, and adds a default body.</p><h3 id="DataSet-AdditionalPropertiesonSimpleDataSet">Additional
Properties on SimpleDataSet</h3><div class="confluenceTableSmall"><div class="table-wrap"><table
class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Property</p></th><th
colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1"
rowspan="1" class="confluenceTh"><p>Default</p></th><th colspan="1"
rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>defaultBody</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>Object</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>&lt;hello&gt;world!&lt;/hello&gt;</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Specifies the default message body.
For SimpleDataSet it is a constant payl
 oad; though if you want to create custom payloads per message, create your own derivation
of <code>DataSetSupport</code>.</p></td></tr></tbody></table></div></div><h3
id="DataSet-ListDataSet"><code>ListDataSet</code></h3><p>The List<code>DataSet</code>&#160;extends&#160;<code>DataSetSupport</code>,
and adds a list of default bodies.</p><h3 id="DataSet-AdditionalPropertiesonListDataSet">Additional
Properties on ListDataSet</h3><div class="confluenceTableSmall"><div class="table-wrap"><table
class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Property</p></th><th
colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1"
rowspan="1" class="confluenceTh"><p>Default</p></th><th colspan="1"
rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>defaultBodies</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>Object</code></p></td><td
colspan="1" r
 owspan="1" class="confluenceTd"><p><code>&lt;hello&gt;world!&lt;/hello&gt;</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>&#160;</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>size</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>long</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>10</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>&#160;</p></td></tr></tbody></table></div></div><h3
id="DataSet-FileDataSet"><code>FileDataSet</code></h3><p>The&#160;<code>SimpleDataSet</code>&#160;extends
<code>ListDataSet</code>, and adds support for loading the bodies from a file.</p><h3
id="DataSet-AdditionalPropertiesonFileDataSet">Additional Properties on FileDataSet</h3><div
class="confluenceTableSmall"><div class="table-wrap"><table class="confluenceTable"><tbody><tr><th
colspan="1" rowspan="1" class="confluenceTh"><p>Property</p></th><th
colspan="1" rowspan="1" class="confluenceT
 h"><p>Type</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Default</p></th><th
colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>sourceFile</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><span style="font-family: monospace;">null</span></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>&#160;</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>delimiter</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><span style="font-family: monospace;">\z</span></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>&#160;</p></td></tr></tbody></table></div></div><p></p><h3
id="DataSet-SeeAlso">See Also</h3>
+</div></div><p>The above would look in the <a shape="rect" href="registry.html">Registry</a>
to find the <strong>foo</strong> DataSet instance which is used to create the
messages.</p><p>Then you create a DataSet implementation, such as using the <code>SimpleDataSet</code>
as described below, configuring things like how big the data set is and what the messages
look like etc. &#160;</p><p>&#160;</p><h2 id="DataSet-DataSetSupport(abstractclass)"><code>DataSetSupport</code>&#160;(abstract
class)</h2><p>The DataSetSupport abstract class is a nice starting point for new
DataSets, and provides some useful features to derived classes.</p><h3 id="DataSet-PropertiesonDataSetSupport">Properties
on DataSetSupport</h3><div class="confluenceTableSmall"><div class="table-wrap"><table
class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Property</p></th><th
colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1"
rowspan="1" class="confluenceT
 h"><p>Default</p></th><th colspan="1" rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>defaultHeaders</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>Map&lt;String,Object&gt;</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>null</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Specifies the default message body.
For SimpleDataSet it is a constant payload; though if you want to create custom payloads per
message, create your own derivation of <code>DataSetSupport</code>.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>outputTransformer</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>org.apache.camel.Processor</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><span style="font-family: monospace;">null</span></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>&#160;</p><
 /td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"><p><code>size</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>long</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>10</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Specifies how many messages to send/consume.</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><code>reportCount</code></td><td
colspan="1" rowspan="1" class="confluenceTd"><code>long</code></td><td
colspan="1" rowspan="1" class="confluenceTd"><code>-1</code></td><td
colspan="1" rowspan="1" class="confluenceTd"><span>Specifies the number of messages
to be received before reporting progress. Useful for showing progress of a large load test.
If &lt; 0, then </span><code>size</code><span> / 5, if is 0 then
</span><code>size</code><span>, else set to </span><code>reportCount</code><span>
value.</span></td></tr></tbody></table></div></div><h3
id="DataSet-SimpleDataSet"><code>Simpl
 eDataSet</code></h3><p>The <code>SimpleDataSet</code> extends
<code>DataSetSupport</code>, and adds a default body.</p><h3 id="DataSet-AdditionalPropertiesonSimpleDataSet">Additional
Properties on SimpleDataSet</h3><div class="confluenceTableSmall"><div class="table-wrap"><table
class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Property</p></th><th
colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1"
rowspan="1" class="confluenceTh"><p>Default</p></th><th colspan="1"
rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>defaultBody</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>Object</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>&lt;hello&gt;world!&lt;/hello&gt;</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Specifies the default message body.
By default, the <code>SimpleDataSet</co
 de> produces the same constant payload for each exchange. If you want to customize the
payload for each exchange, create a Camel <code>Processor</code> and configure
the <code>SimpleDataSet</code> to use it by setting the <code>outputTransformer</code>
property.</p></td></tr></tbody></table></div></div><h3
id="DataSet-ListDataSet(Camel2.17)"><code>ListDataSet (Camel 2.17)</code></h3><p>The
List<code>DataSet</code>&#160;extends&#160;<code>DataSetSupport</code>,
and adds a list of default bodies.</p><h3 id="DataSet-AdditionalPropertiesonListDataSet">Additional
Properties on ListDataSet</h3><div class="confluenceTableSmall"><div class="table-wrap"><table
class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"><p>Property</p></th><th
colspan="1" rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1"
rowspan="1" class="confluenceTh"><p>Default</p></th><th colspan="1"
rowspan="1" class="confluenceTh"><p>Description</p></th></tr><tr><td
colspan="1" row
 span="1" class="confluenceTd"><p><code>defaultBodies</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>List&lt;Object&gt;</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>empty LinkedList&lt;Object&gt;</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Specifies the default message body.
By default, the <code>ListDataSet</code><span> selects a constant payload
from the list of <code>defaultBodies</code> using the <code>CamelDataSetIndex</code>.
If you want to customize the payload, create a Camel </span><code>Processor</code>
and configure the <code>ListDataSet</code><span> to use it by setting the
</span><code>outputTransformer</code><span> property.</span></p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>size</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>long</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>the size of the defaultBodies list</p></td
 ><td colspan="1" rowspan="1" class="confluenceTd"><p><span>Specifies
how many messages to send/consume. This value can be different from the size of the <code>defaultBodies</code>
list. If the value is less than the size of the <code>defaultBodies</code> list,
some of the list elements will not be used. If the value is greater than the size of the <code>defaultBodies</code>
list, the payload for the exchange will be selected using the modulus of the <code>CamelDataSetIndex</code>
and the size of the <code>defaultBodies</code> list (i.e. <code>CamelDataSetIndex
% defaultBodies.size()</code> )</span></p></td></tr></tbody></table></div></div><h3
id="DataSet-FileDataSet(Camel2.17)"><code>FileDataSet (Camel 2.17)</code></h3><p>The&#160;<code>SimpleDataSet</code>&#160;extends
<code>ListDataSet</code>, and adds support for loading the bodies from a file.</p><h3
id="DataSet-AdditionalPropertiesonFileDataSet">Additional Properties on FileDataSet</h3><div
class="confluenceTableSmall"><div cla
 ss="table-wrap"><table class="confluenceTable"><tbody><tr><th colspan="1"
rowspan="1" class="confluenceTh"><p>Property</p></th><th colspan="1"
rowspan="1" class="confluenceTh"><p>Type</p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p>Default</p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p>Description</p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>sourceFile</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>File</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><span style="font-family: monospace;">null</span></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>Specifies the source file for payloads</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>delimiter</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>String</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><span style="font-family: monospace;">\z</span></p></td><td
c
 olspan="1" rowspan="1" class="confluenceTd"><p>Specifies the delimiter pattern used
by a <code>java.util.Scanner</code> to split the file into multiple payloads.</p></td></tr></tbody></table></div></div><p></p><h3
id="DataSet-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><li><a shape="rect" href="spring-testing.html">Spring
Testing</a></li></ul></div>
         </td>
         <td valign="top">



Mime
View raw message