camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r996535 - in /websites/production/camel/content: cache/main.pageCache mongodb-gridfs.html
Date Fri, 02 Sep 2016 19:18:49 GMT
Author: buildbot
Date: Fri Sep  2 19:18:49 2016
New Revision: 996535

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/mongodb-gridfs.html

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

Modified: websites/production/camel/content/mongodb-gridfs.html
==============================================================================
--- websites/production/camel/content/mongodb-gridfs.html (original)
+++ websites/production/camel/content/mongodb-gridfs.html Fri Sep  2 19:18:49 2016
@@ -96,7 +96,7 @@
 </div></div><h2 id="MongoDBGridFS-URIformat">URI format</h2><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[gridfs:connectionBean?database=databaseName&amp;bucket=bucketName[&amp;moreOptions...]
 ]]></script>
-</div></div><h2 id="MongoDBGridFS-Endpointoptions">Endpoint options</h2><p>GridFS
endpoints support the following options, depending on whether they are acting like a Producer
or as a Consumer (options vary based on the consumer type too).</p><p>&#160;</p><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><th colspan="1" rowspan="1"
class="confluenceTh"><p>Producer</p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p>Consumer</p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>database</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>none</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p><strong>Required.</strong> The name
of the database to which this endpoint will be bound. All operations will be execu
 ted against this database.</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><img
class="emoticon emoticon-tick" src="https://cwiki.apache.org/confluence/s/en_GB/5982/f2b47fb3d636c8bc9fd0b11c0ec6d0ae18646be7.1/_/images/icons/emoticons/check.png"
data-emoticon-name="tick" alt="(tick)"></p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p><img class="emoticon emoticon-tick" src="https://cwiki.apache.org/confluence/s/en_GB/5982/f2b47fb3d636c8bc9fd0b11c0ec6d0ae18646be7.1/_/images/icons/emoticons/check.png"
data-emoticon-name="tick" alt="(tick)"></p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>bucket</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>fs</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>The name of the GridFS bucket within the Database.
The default is the GridFS.DEFAULT_BUCKET value ("fs").</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p><img class="emoticon emoticon-tick" src="https://cwiki
 .apache.org/confluence/s/en_GB/5982/f2b47fb3d636c8bc9fd0b11c0ec6d0ae18646be7.1/_/images/icons/emoticons/check.png"
data-emoticon-name="tick" alt="(tick)"></p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p><img class="emoticon emoticon-tick" src="https://cwiki.apache.org/confluence/s/en_GB/5982/f2b47fb3d636c8bc9fd0b11c0ec6d0ae18646be7.1/_/images/icons/emoticons/check.png"
data-emoticon-name="tick" alt="(tick)"></p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>operation</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>create</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>The id of the operation this endpoint
will execute. Pick from the following:</p><ul><li>Query operations: <code>findOne</code>,
<code>listAll</code>, <code>count</code></li><li>Write
operations: <code>create</code></li><li>Delete operations: <code>remove</code></li></ul></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><img class="emoticon emoti
 con-tick" src="https://cwiki.apache.org/confluence/s/en_GB/5982/f2b47fb3d636c8bc9fd0b11c0ec6d0ae18646be7.1/_/images/icons/emoticons/check.png"
data-emoticon-name="tick" alt="(tick)"></p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>&#160;</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>query</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>none</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>Combined with the query strategy parameters to
create the query used to search for new files.</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>&#160;</p>&#160;</td><td colspan="1"
rowspan="1" class="confluenceTd"><p><img class="emoticon emoticon-tick" src="https://cwiki.apache.org/confluence/s/en_GB/5982/f2b47fb3d636c8bc9fd0b11c0ec6d0ae18646be7.1/_/images/icons/emoticons/check.png"
data-emoticon-name="tick" alt="(tick)"></p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>queryStrategy</p></td><td
colspan="1" rows
 pan="1" class="confluenceTd"><p>TimeStamp</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>The strategy that is used to find new files.
Can be one of:</p><ul><li><p>TimeStamp - files that are uploaded after
the Consumer starts are processed</p></li><li><p>PersistentTimestamp
- Like TimeStamp, but the last timestamp used is persisted to a collection so when the Consumer
restarts, it can resume where it left off</p></li><li><p>FileAttribute
- finds files that do NOT have the give attribute. After processing, it adds the attribute.</p></li><li><p>TimestampAndFileAttribute
- finds files that are newer than the TimeStamp and are missing the attribute</p></li><li><p>PersistentTimestampAndFileAttribute</p></li></ul></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>&#160;</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><img class="emoticon emoticon-tick"
src="https://cwiki.apache.org/confluence/s/en_GB/5982/f2b47fb3d636c8bc9fd0b11c0ec6d0ae18646be7.1/_/images/ic
 ons/emoticons/check.png" data-emoticon-name="tick" alt="(tick)"></p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>persistentTSCollection</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>camel-timestamps</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>When using persistent timestamps,
this is the Collection that the timestamp is stored into.</p></td><td colspan="1"
rowspan="1" class="confluenceTd">&#160;</td><td colspan="1" rowspan="1" class="confluenceTd"><img
class="emoticon emoticon-tick" src="https://cwiki.apache.org/confluence/s/en_GB/5982/f2b47fb3d636c8bc9fd0b11c0ec6d0ae18646be7.1/_/images/icons/emoticons/check.png"
data-emoticon-name="tick" alt="(tick)"></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p>persistenTSObject</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>camel-timestamp</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>When using persistent timestamps,
this is the object ID for the ti
 mestamp object. Each consumer can have it's own timestamp ID stored in a common Collection</p></td><td
colspan="1" rowspan="1" class="confluenceTd">&#160;</td><td colspan="1" rowspan="1"
class="confluenceTd"><img class="emoticon emoticon-tick" src="https://cwiki.apache.org/confluence/s/en_GB/5982/f2b47fb3d636c8bc9fd0b11c0ec6d0ae18646be7.1/_/images/icons/emoticons/check.png"
data-emoticon-name="tick" alt="(tick)"></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p>fileAttributeName</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>camel-processed</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>When using FileAttribute, this is
the name of the attribute that is used. When a file is about to be processed, the attribute
is set to "processing" and then set to "done" when the file processing is done.</p></td><td
colspan="1" rowspan="1" class="confluenceTd">&#160;</td><td colspan="1" rowspan="1"
class="confluenceTd"><img class="emoticon emoticon-tick" sr
 c="https://cwiki.apache.org/confluence/s/en_GB/5982/f2b47fb3d636c8bc9fd0b11c0ec6d0ae18646be7.1/_/images/icons/emoticons/check.png"
data-emoticon-name="tick" alt="(tick)"></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p>delay</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>500 (ms)</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>The delay between polling GridFS for new files</p></td><td
colspan="1" rowspan="1" class="confluenceTd">&#160;</td><td colspan="1" rowspan="1"
class="confluenceTd"><img class="emoticon emoticon-tick" src="https://cwiki.apache.org/confluence/s/en_GB/5982/f2b47fb3d636c8bc9fd0b11c0ec6d0ae18646be7.1/_/images/icons/emoticons/check.png"
data-emoticon-name="tick" alt="(tick)"></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p>initialDelay</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>1000 (ms)</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>The initial delay before the first poll</p></
 td><td colspan="1" rowspan="1" class="confluenceTd">&#160;</td><td
colspan="1" rowspan="1" class="confluenceTd"><img class="emoticon emoticon-tick" src="https://cwiki.apache.org/confluence/s/en_GB/5982/f2b47fb3d636c8bc9fd0b11c0ec6d0ae18646be7.1/_/images/icons/emoticons/check.png"
data-emoticon-name="tick" alt="(tick)"></td></tr></tbody></table></div><h2
id="MongoDBGridFS-ConfigurationofdatabaseinSpringXML">Configuration of database in Spring
XML</h2><p>The following Spring XML creates a bean defining the connection to
a MongoDB instance.</p><div class="code panel pdl" style="border-width: 1px;"><div
class="codeContent panelContent pdl">
+</div></div><h2 id="MongoDBGridFS-Endpointoptions">Endpoint options</h2><p>GridFS
endpoints support the following options, depending on whether they are acting like a Producer
or as a Consumer (options vary based on the consumer type too).</p><p>&#160;</p><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><th colspan="1" rowspan="1"
class="confluenceTh"><p>Producer</p></th><th colspan="1" rowspan="1"
class="confluenceTh"><p>Consumer</p></th></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>database</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>none</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p><strong>Required.</strong> The name
of the database to which this endpoint will be bound. All operations will be execu
 ted against this database.</p></td><td colspan="1" rowspan="1" class="confluenceTd"><p><img
class="emoticon emoticon-tick" src="https://cwiki.apache.org/confluence/s/en_GB/5982/f2b47fb3d636c8bc9fd0b11c0ec6d0ae18646be7.1/_/images/icons/emoticons/check.png"
data-emoticon-name="tick" alt="(tick)"></p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p><img class="emoticon emoticon-tick" src="https://cwiki.apache.org/confluence/s/en_GB/5982/f2b47fb3d636c8bc9fd0b11c0ec6d0ae18646be7.1/_/images/icons/emoticons/check.png"
data-emoticon-name="tick" alt="(tick)"></p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>bucket</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>fs</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>The name of the GridFS bucket within the Database.
The default is the GridFS.DEFAULT_BUCKET value ("fs").</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p><img class="emoticon emoticon-tick" src="https://cwiki
 .apache.org/confluence/s/en_GB/5982/f2b47fb3d636c8bc9fd0b11c0ec6d0ae18646be7.1/_/images/icons/emoticons/check.png"
data-emoticon-name="tick" alt="(tick)"></p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p><img class="emoticon emoticon-tick" src="https://cwiki.apache.org/confluence/s/en_GB/5982/f2b47fb3d636c8bc9fd0b11c0ec6d0ae18646be7.1/_/images/icons/emoticons/check.png"
data-emoticon-name="tick" alt="(tick)"></p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p><code>operation</code></p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>create</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>The id of the operation this endpoint
will execute. Pick from the following:</p><ul><li>Query operations: <code>findOne</code>,
<code>listAll</code>, <code>count</code></li><li>Write
operations: <code>create</code></li><li>Delete operations: <code>remove</code></li></ul></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><img class="emoticon emoti
 con-tick" src="https://cwiki.apache.org/confluence/s/en_GB/5982/f2b47fb3d636c8bc9fd0b11c0ec6d0ae18646be7.1/_/images/icons/emoticons/check.png"
data-emoticon-name="tick" alt="(tick)"></p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>&#160;</p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>query</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>none</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>Combined with the query strategy parameters to
create the query used to search for new files.</p></td><td colspan="1" rowspan="1"
class="confluenceTd"><p>&#160;</p>&#160;</td><td colspan="1"
rowspan="1" class="confluenceTd"><p><img class="emoticon emoticon-tick" src="https://cwiki.apache.org/confluence/s/en_GB/5982/f2b47fb3d636c8bc9fd0b11c0ec6d0ae18646be7.1/_/images/icons/emoticons/check.png"
data-emoticon-name="tick" alt="(tick)"></p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>queryStrategy</p></td><td
colspan="1" rows
 pan="1" class="confluenceTd"><p>TimeStamp</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>The strategy that is used to find new files.
Can be one of:</p><ul><li><p>TimeStamp - files that are uploaded after
the Consumer starts are processed</p></li><li><p>PersistentTimestamp
- Like TimeStamp, but the last timestamp used is persisted to a collection so when the Consumer
restarts, it can resume where it left off</p></li><li><p>FileAttribute
- finds files that do NOT have the give attribute. After processing, it adds the attribute.</p></li><li><p>TimestampAndFileAttribute
- finds files that are newer than the TimeStamp and are missing the attribute</p></li><li><p>PersistentTimestampAndFileAttribute</p></li></ul></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>&#160;</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p><img class="emoticon emoticon-tick"
src="https://cwiki.apache.org/confluence/s/en_GB/5982/f2b47fb3d636c8bc9fd0b11c0ec6d0ae18646be7.1/_/images/ic
 ons/emoticons/check.png" data-emoticon-name="tick" alt="(tick)"></p></td></tr><tr><td
colspan="1" rowspan="1" class="confluenceTd"><p>persistentTSCollection</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>camel-timestamps</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>When using persistent timestamps,
this is the Collection that the timestamp is stored into.</p></td><td colspan="1"
rowspan="1" class="confluenceTd">&#160;</td><td colspan="1" rowspan="1" class="confluenceTd"><img
class="emoticon emoticon-tick" src="https://cwiki.apache.org/confluence/s/en_GB/5982/f2b47fb3d636c8bc9fd0b11c0ec6d0ae18646be7.1/_/images/icons/emoticons/check.png"
data-emoticon-name="tick" alt="(tick)"></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p>persistentTSObject</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>camel-timestamp</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>When using persistent timestamps,
this is the object ID for the t
 imestamp object. Each consumer can have it's own timestamp ID stored in a common Collection</p></td><td
colspan="1" rowspan="1" class="confluenceTd">&#160;</td><td colspan="1" rowspan="1"
class="confluenceTd"><img class="emoticon emoticon-tick" src="https://cwiki.apache.org/confluence/s/en_GB/5982/f2b47fb3d636c8bc9fd0b11c0ec6d0ae18646be7.1/_/images/icons/emoticons/check.png"
data-emoticon-name="tick" alt="(tick)"></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p>fileAttributeName</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>camel-processed</p></td><td
colspan="1" rowspan="1" class="confluenceTd"><p>When using FileAttribute, this is
the name of the attribute that is used. When a file is about to be processed, the attribute
is set to "processing" and then set to "done" when the file processing is done.</p></td><td
colspan="1" rowspan="1" class="confluenceTd">&#160;</td><td colspan="1" rowspan="1"
class="confluenceTd"><img class="emoticon emoticon-tick" s
 rc="https://cwiki.apache.org/confluence/s/en_GB/5982/f2b47fb3d636c8bc9fd0b11c0ec6d0ae18646be7.1/_/images/icons/emoticons/check.png"
data-emoticon-name="tick" alt="(tick)"></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p>delay</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>500 (ms)</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>The delay between polling GridFS for new files</p></td><td
colspan="1" rowspan="1" class="confluenceTd">&#160;</td><td colspan="1" rowspan="1"
class="confluenceTd"><img class="emoticon emoticon-tick" src="https://cwiki.apache.org/confluence/s/en_GB/5982/f2b47fb3d636c8bc9fd0b11c0ec6d0ae18646be7.1/_/images/icons/emoticons/check.png"
data-emoticon-name="tick" alt="(tick)"></td></tr><tr><td colspan="1"
rowspan="1" class="confluenceTd"><p>initialDelay</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>1000 (ms)</p></td><td colspan="1"
rowspan="1" class="confluenceTd"><p>The initial delay before the first poll</p><
 /td><td colspan="1" rowspan="1" class="confluenceTd">&#160;</td><td
colspan="1" rowspan="1" class="confluenceTd"><img class="emoticon emoticon-tick" src="https://cwiki.apache.org/confluence/s/en_GB/5982/f2b47fb3d636c8bc9fd0b11c0ec6d0ae18646be7.1/_/images/icons/emoticons/check.png"
data-emoticon-name="tick" alt="(tick)"></td></tr></tbody></table></div><h2
id="MongoDBGridFS-ConfigurationofdatabaseinSpringXML">Configuration of database in Spring
XML</h2><p>The following Spring XML creates a bean defining the connection to
a MongoDB instance.</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;beans
xmlns=&quot;http://www.springframework.org/schema/beans&quot;
     xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
     xsi:schemaLocation=&quot;http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd&quot;&gt;
@@ -146,7 +146,11 @@ template.requestBodyAndHeaders(&quot;dir
 Map&lt;String, Object&gt; headers = new HashMap&lt;String, Object&gt;();
 headers.put(Exchange.FILE_NAME, &quot;filename.txt&quot;);
 template.requestBodyAndHeaders(&quot;direct:remove&quot;, &quot;&quot;, headers);]]></script>
-</div></div><h3 id="MongoDBGridFS-GridFSConsumer">GridFS Consumer</h3><p>&#160;</p><p>&#160;</p><p>&#160;</p><p>&#160;</p><p>See
also</p><ul><li><a shape="rect" class="external-link" href="http://www.mongodb.org/"
rel="nofollow">MongoDB website</a></li><li><a shape="rect" class="external-link"
href="http://en.wikipedia.org/wiki/NoSQL" rel="nofollow">NoSQL Wikipedia article</a></li><li><a
shape="rect" class="external-link" href="http://api.mongodb.org/java/current/" rel="nofollow">MongoDB
Java driver API docs - current version</a></li><li><a shape="rect" class="external-link"
href="http://svn.apache.org/viewvc/camel/trunk/components/camel-mongodb/src/test/">Unit
tests</a> for more examples of usage</li></ul></div>
+</div></div><h3 id="MongoDBGridFS-GridFSConsumer">GridFS Consumer</h3><p>The
GridFS component will poll GridFS periodically for new files to process. &#160; The two
parameters that control this behavior are the <em>delay</em> and <em>initialDelay</em>
parameters. &#160; &#160;The <em>delay</em> parameter specifies how long
the background tread will sleep between polling attempts. &#160; The default is 500ms.
&#160; &#160;The <em>initialDelay</em>&#160;&#160;parameter specifies
how long the consumer will wait after starting before polling the first time. &#160; This
is useful if the backend service needs a bit longer to become available.</p><p>The
Consumer has several strategies for determining which files within the grid have not been
processed yet:</p><ul><li>TimeStamp - (default) when the consumer starts
up, it uses the current time as the starting point. &#160; Any files currently in the
grid are ignored, only files added after the consumer start are processed. &#160; After
polli
 ng, the consumer updates it's timestamp with the timestamp of the newest file processed.</li><li>PersistentTimestamp
- when the consumer starts up, it queries the collection specified by the&#160;<em>persistentTSCollection</em>&#160;parameter
for the object given by the&#160;<em>persistentTSObject</em>&#160;parameter
to use as the starting timestamp. &#160; If the object doesn't exist, it uses the current
time and creates the object. &#160; After each file processed, the timestamp in the collection
is updated.</li><li>FileAttribute - instead of timestamps, the consumer will query
gridfs for files that don't have the attribute given by the&#160;<em>fileAttributeName</em>
parameter. &#160; When the file starts to be processed by the consumer, the attribute
is added to the file in the gridfs.</li><li><p>TimestampAndFileAttribute
- finds files that are newer than the TimeStamp and are missing the attribute. &#160;Adds
the attribute to the file when processing.</p></li><li><p>PersistentT
 imestampAndFileAttribute -&#160;finds files that are newer than the TimeStamp and are
missing the attribute. &#160;Adds the attribute to the file when processing and updates
the persistent timestamp.</p></li></ul><p>&#160;</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[from(&quot;gridfs?database=tickets&amp;queryStrategy=FileAttribute&quot;).process(.....);
+ 
+from(&quot;gridfs?database=myData&amp;queryStrategy=PersistentTimestamp&amp;persistentTSCollection=CamelTimestamps&amp;persistentTSObject=myDataTS&quot;).process(...)]]></script>
+</div></div><p>&#160;</p><p>&#160;</p><p>See
also</p><ul><li><a shape="rect" class="external-link" href="http://www.mongodb.org/"
rel="nofollow">MongoDB website</a></li><li><a shape="rect" class="external-link"
href="http://en.wikipedia.org/wiki/NoSQL" rel="nofollow">NoSQL Wikipedia article</a></li><li><a
shape="rect" class="external-link" href="http://api.mongodb.org/java/current/" rel="nofollow">MongoDB
Java driver API docs - current version</a></li><li><a shape="rect" class="external-link"
href="http://svn.apache.org/viewvc/camel/trunk/components/camel-mongodb/src/test/">Unit
tests</a> for more examples of usage</li></ul></div>
         </td>
         <td valign="top">
           <div class="navigation">



Mime
View raw message