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 2013/07/19 11:19:01 UTC

svn commit: r870112 - in /websites/production/camel/content: cache/main.pageCache stream-caching.html

Author: buildbot
Date: Fri Jul 19 09:19:00 2013
New Revision: 870112

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/stream-caching.html

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

Modified: websites/production/camel/content/stream-caching.html
==============================================================================
--- websites/production/camel/content/stream-caching.html (original)
+++ websites/production/camel/content/stream-caching.html Fri Jul 19 09:19:00 2013
@@ -262,10 +262,32 @@ The old kind of configuration using prop
 <p>The strategy has the following options:</p>
 
 <div class="table-wrap">
-<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"> Option </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"> spoolDirectory </td><td colspan="1" rowspan="1" class="confluenceTd"> java.io.tmpdir </td><td colspan="1" rowspan="1" class="confluenceTd"> Base directory where temporary files for spooled streams should be stored. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> spoolThreshold </td><td colspan="1" rowspan="1" class="confluenceTd"> 128kb </td><td colspan="1" rowspan="1" class="confluenceTd"> Size in bytes when the stream should be spooled to disk instead of keeping in memory. Use a value of 0 or negative to disable it all together so streams is always kept in memory regardless of their size. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> spoolChiper </td><td colsp
 an="1" rowspan="1" class="confluenceTd"> null </td><td colspan="1" rowspan="1" class="confluenceTd"> If set, the temporary files are encrypted using the specified cipher transformation (i.e., a valid stream or 8-bit cipher name such as "RC4", "AES/CTR/NoPadding". An empty name "" is treated as null).</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> bufferSize </td><td colspan="1" rowspan="1" class="confluenceTd"> 4096 </td><td colspan="1" rowspan="1" class="confluenceTd"> Size in bytes of the buffer used when copying streams. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> removeSpoolDirectoryWhenStopping </td><td colspan="1" rowspan="1" class="confluenceTd"> true </td><td colspan="1" rowspan="1" class="confluenceTd"> Whether to remove the spool directory when stopping <a shape="rect" href="camelcontext.html" title="CamelContext">CamelContext</a>. </td></tr></tbody></table>
+<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" class="confluenceTh"> Option </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"> spoolDirectory </td><td colspan="1" rowspan="1" class="confluenceTd"> java.io.tmpdir </td><td colspan="1" rowspan="1" class="confluenceTd"> Base directory where temporary files for spooled streams should be stored. This option supports naming patterns as documented below. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> spoolThreshold </td><td colspan="1" rowspan="1" class="confluenceTd"> 128kb </td><td colspan="1" rowspan="1" class="confluenceTd"> Size in bytes when the stream should be spooled to disk instead of keeping in memory. Use a value of 0 or negative to disable it all together so streams is always kept in memory regardless of their size. </td></tr><tr><td colspan="1" ro
 wspan="1" class="confluenceTd"> spoolChiper </td><td colspan="1" rowspan="1" class="confluenceTd"> null </td><td colspan="1" rowspan="1" class="confluenceTd"> If set, the temporary files are encrypted using the specified cipher transformation (i.e., a valid stream or 8-bit cipher name such as "RC4", "AES/CTR/NoPadding". An empty name "" is treated as null).</td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> bufferSize </td><td colspan="1" rowspan="1" class="confluenceTd"> 4096 </td><td colspan="1" rowspan="1" class="confluenceTd"> Size in bytes of the buffer used when copying streams. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> removeSpoolDirectoryWhenStopping </td><td colspan="1" rowspan="1" class="confluenceTd"> true </td><td colspan="1" rowspan="1" class="confluenceTd"> Whether to remove the spool directory when stopping <a shape="rect" href="camelcontext.html" title="CamelContext">CamelContext</a>. </td></tr></tbody></table>
 </div>
 
 
+<h4><a shape="rect" name="Streamcaching-SpoolDirectorynamingpattern"></a>SpoolDirectory naming pattern</h4>
+
+<p>The following patterns is supported:</p>
+
+<ul class="alternate" type="square"><li>#camelId# = the CamelContext id (eg the name)</li><li>#name# - same as #camelId#</li><li>#counter# - an incrementing counter</li><li>#bundleId# - the OSGi bundle id (only for OSGi environments)</li><li>#symbolicName# - the OSGi symbolic name (only for OSGi environments)</li><li>#version# - the OSGi bundle version (only for OSGi environments)</li><li>${env:key} - the environment variable with the key</li><li>${key} - the JVM system property with the key</li></ul>
+
+
+<p>A could of examples, to store in the java temp directory with a sub directory using the CamelContext name:</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+context.getStreamCachingStrategy().setSpoolDirectory"${java.io.tmpdir}#name#/");
+]]></script>
+</div></div>
+
+<p>To store in KARAF_HOME/tmp/bundleId directory</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent panelContent">
+<script class="theme: Default; brush: java; gutter: false" type="syntaxhighlighter"><![CDATA[
+context.getStreamCachingStrategy().setSpoolDirectory"${env:KARAF_HOME}/tmp/bundle#bundleId#");
+]]></script>
+</div></div>
+
+
 <h4><a shape="rect" name="Streamcaching-UsingStreamCachingStrategyinJava"></a>Using StreamCachingStrategy in Java</h4>
 
 <p>You can configure the <tt>StreamCachingStrategy</tt> in Java as shown below:</p>