Author: buildbot
Date: Fri Dec 14 09:18:16 2012
New Revision: 842286

Log:
Production update by buildbot for camel

Modified:
    websites/production/camel/content/cache/main.pageCache
    websites/production/camel/content/camel-2110-release.html
    websites/production/camel/content/zookeeper.html

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

Modified: websites/production/camel/content/camel-2110-release.html
==============================================================================
--- websites/production/camel/content/camel-2110-release.html (original)
+++ websites/production/camel/content/camel-2110-release.html Fri Dec 14 
09:18:16 2012
@@ -144,7 +144,7 @@
 
 <h2><a shape="rect" 
name="Camel2.11.0Release-DependencyUpgrades"></a>Dependency Upgrades</h2>
 
-<ul><li>Aries Blueprint 0.3 to 1.0.0</li><li>Async Http Client 1.7.5 to 
1.7.8</li><li>Avro 1.6.2 to 1.7.2</li><li>AWS 1.3.10 to 1.3.14</li><li>Axiom 
1.2.10 to 1.2.12</li><li>BeanIO 2.0.0 to 2.0.2</li><li>Commons Exec 1.0.1 to 
1.1</li><li>ConcurrentLinkedHashMap 1.2 to 1.3.1</li><li>Ehcache 2.5.1 to 
2.6.0</li><li>Groovy 1.8.6 to 2.0.5</li><li>GSon 2.1 to 2.2.2</li><li>Hazelcast 
2.0.2 to 2.4</li><li>HTTP Client 4.1.3 to 4.2.2</li><li>Icu4j 4.0.1 to 
4.8.1.1</li><li>Jackson 1.9.7 to 1.9.10</li><li>Jaxen 1.1.3 to 
1.1.4</li><li>JClouds 1.4.0 to 1.5.1</li><li>Jettison 1.3.1 to 
1.3.2</li><li>Jetty 7.5.4 to 7.6.8</li><li>JRuby 1.6.7 to 1.7.0</li><li>JT400 
6.0 to 6.7</li><li>Krati 0.4.5 to 0.4.6</li><li>LevelDBJNI 1.2 to 
1.3</li><li>Lucene 3.6.0 to 3.6.1</li><li>Mina 2.0.4 to 2.0.7</li><li>MongoDB 
Java Driver 2.7.3 to 2.9.1</li><li>MQTTClient 1.2 to 1.4</li><li>Netty 3.5.1 to 
3.5.11</li><li>Ognl bundle 3.0.4_1 to 3.0.5_1</li><li>OSGi 4.2.0 to 
4.3.0</li><li>Pax Logging 1.5.3 to 1.6.10<
 /li><li>QPid 0.16 to 0.18</li><li>Quartz 1.8.5 to 1.8.6</li><li>Restlet 2.0.14 
to 2.0.15</li><li>Saxon 9.3.0.11 to 9.4.0.1</li><li>Scala 2.9.1 to 
2.9.2</li><li>Shiro 1.2.0 to 1.2.1</li><li>SLF4J 1.6.6 to 1.7.2</li><li>Solr 
3.6.0 to 3.6.1</li><li>Spring Batch 2.1.8 to 2.1.9</li><li>Spring Framework 
3.1.1 to 3.1.2</li><li>Spring Integration 2.1.2 to 2.1.4</li><li>Spring 
Security 3.1.0 to 3.1.3</li><li>SSHD 0.6.0 to 0.8.0</li><li>TestNG 6.0.1 to 
6.8</li><li>Woodstox 4.1.2 to 4.1.3</li><li>XStream 1.4.2 to 1.4.3</li></ul>
+<ul><li>Aries Blueprint 0.3 to 1.0.0</li><li>Async Http Client 1.7.5 to 
1.7.8</li><li>Avro 1.6.2 to 1.7.2</li><li>AWS 1.3.10 to 1.3.14</li><li>Axiom 
1.2.10 to 1.2.12</li><li>BeanIO 2.0.0 to 2.0.2</li><li>Commons Exec 1.0.1 to 
1.1</li><li>ConcurrentLinkedHashMap 1.2 to 1.3.1</li><li>Ehcache 2.5.1 to 
2.6.0</li><li>Groovy 1.8.6 to 2.0.5</li><li>GSon 2.1 to 2.2.2</li><li>Hazelcast 
2.0.2 to 2.4</li><li>HTTP Client 4.1.3 to 4.2.2</li><li>Icu4j 4.0.1 to 
4.8.1.1</li><li>Jackson 1.9.7 to 1.9.10</li><li>Jaxen 1.1.3 to 
1.1.4</li><li>JClouds 1.4.0 to 1.5.1</li><li>Jettison 1.3.1 to 
1.3.2</li><li>Jetty 7.5.4 to 7.6.8</li><li>JRuby 1.6.7 to 1.7.1</li><li>JT400 
6.0 to 6.7</li><li>Krati 0.4.5 to 0.4.6</li><li>LevelDBJNI 1.2 to 
1.3</li><li>Lucene 3.6.0 to 3.6.1</li><li>Mina 2.0.4 to 2.0.7</li><li>MongoDB 
Java Driver 2.7.3 to 2.9.1</li><li>MQTTClient 1.2 to 1.4</li><li>Netty 3.5.1 to 
3.5.11</li><li>Ognl bundle 3.0.4_1 to 3.0.5_1</li><li>OSGi 4.2.0 to 
4.3.0</li><li>Pax Logging 1.5.3 to 1.6.10<
 /li><li>QPid 0.16 to 0.18</li><li>Quartz 1.8.5 to 1.8.6</li><li>Restlet 2.0.14 
to 2.0.15</li><li>Saxon 9.3.0.11 to 9.4.0.1</li><li>Scala 2.9.1 to 
2.9.2</li><li>Shiro 1.2.0 to 1.2.1</li><li>SLF4J 1.6.6 to 1.7.2</li><li>Solr 
3.6.0 to 3.6.1</li><li>Spring Batch 2.1.8 to 2.1.9</li><li>Spring Framework 
3.1.1 to 3.1.2</li><li>Spring Integration 2.1.2 to 2.1.4</li><li>Spring 
Security 3.1.0 to 3.1.3</li><li>SSHD 0.6.0 to 0.8.0</li><li>TestNG 6.0.1 to 
6.8</li><li>Woodstox 4.1.2 to 4.1.3</li><li>XStream 1.4.2 to 1.4.3</li></ul>
 
 
 <h2><a shape="rect" 
name="Camel2.11.0Release-Importantchangestoconsiderwhenupgrading"></a>Important 
changes to consider when upgrading</h2>

Modified: websites/production/camel/content/zookeeper.html
==============================================================================
--- websites/production/camel/content/zookeeper.html (original)
+++ websites/production/camel/content/zookeeper.html Fri Dec 14 09:18:16 2012
@@ -76,6 +76,7 @@
         <tr>
         <td valign="top" width="100%">
 <div class="wiki-content maincontent"><h2><a shape="rect" 
name="Zookeeper-ZooKeeper"></a>ZooKeeper</h2>
+
 <p><b>Available as of Camel 2.9</b></p>
 
 <p>The ZooKeeper component allows interaction with a <a shape="rect" 
class="external-link" href="http://hadoop.apache.org/zookeeper/";>ZooKeeper</a> 
cluster and exposes the following features to Camel:</p>
@@ -107,7 +108,7 @@ zookeeper:<span class="code-comment">//z
 
 <h3><a shape="rect" name="Zookeeper-Options"></a>Options</h3>
 <div class="confluenceTableSmall"><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 Value </th><th colspan="1" rowspan="1" 
class="confluenceTh"> Description </th></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"> <tt>sessionId</tt> </td><td colspan="1" rowspan="1" 
class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" 
class="confluenceTd"> The session id used to identify a connection to the 
cluster </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> 
<tt>password</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> 
<tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> The 
password to use when making a connection </td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"> <tt>listChildren</tt> </td><td colspan="1" 
rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" 
rowspan="1" class="confluenceTd"> whether the children of the
  node should be listed</td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"> <tt>repeat</tt> </td><td colspan="1" rowspan="1" 
class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" 
class="confluenceTd"> should changes to the znode be 'watched' and repeatedly 
processed. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> 
<tt>backoff</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> 
<tt>5000</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> the time 
interval to backoff for after an error before retrying.  </td></tr><tr><td 
colspan="1" rowspan="1" class="confluenceTd"> <tt>timeout</tt> </td><td 
colspan="1" rowspan="1" class="confluenceTd"> <tt>5000</tt> </td><td 
colspan="1" rowspan="1" class="confluenceTd"> the time interval to wait on 
connection before timing out. </td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"> <tt>create</tt> </td><td colspan="1" rowspan="1" 
class="confluenceTd"> <tt>false</tt> </td><td c
 olspan="1" rowspan="1" class="confluenceTd"> should the endpoint create the 
node if it does not currently exist. </td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"> <tt>createMode</tt> </td><td colspan="1" rowspan="1" 
class="confluenceTd"> <tt>EPHEMERAL</tt> </td><td colspan="1" rowspan="1" 
class="confluenceTd"> the create mode that should be used for the newly created 
node (see below). </td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"> <tt>sendEmptyMessageOnDelete</tt> </td><td colspan="1" 
rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" 
rowspan="1" class="confluenceTd"> <b>Camel 2.10:</b> upon the delete of a 
znode, should an empty message be send to the consumer 
</td></tr></tbody></table>
+<table class="confluenceTable"><tbody><tr><th colspan="1" rowspan="1" 
class="confluenceTh"> Name </th><th colspan="1" rowspan="1" 
class="confluenceTh"> Default Value </th><th colspan="1" rowspan="1" 
class="confluenceTh"> Description </th></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"> <tt>sessionId</tt> </td><td colspan="1" rowspan="1" 
class="confluenceTd"> <tt>null</tt> </td><td colspan="1" rowspan="1" 
class="confluenceTd"> The session id used to identify a connection to the 
cluster </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> 
<tt>password</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> 
<tt>null</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> The 
password to use when making a connection </td></tr><tr><td colspan="1" 
rowspan="1" class="confluenceTd"> <tt>listChildren</tt> </td><td colspan="1" 
rowspan="1" class="confluenceTd"> <tt>false</tt> </td><td colspan="1" 
rowspan="1" class="confluenceTd"> whether the children of the
  node should be listed </td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"> <tt>repeat</tt> </td><td colspan="1" rowspan="1" 
class="confluenceTd"> <tt>false</tt> </td><td colspan="1" rowspan="1" 
class="confluenceTd"> should changes to the znode be 'watched' and repeatedly 
processed. </td></tr><tr><td colspan="1" rowspan="1" class="confluenceTd"> 
<tt>backoff</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> 
<tt>5000</tt> </td><td colspan="1" rowspan="1" class="confluenceTd"> the time 
interval to backoff for after an error before retrying. </td></tr><tr><td 
colspan="1" rowspan="1" class="confluenceTd"> <tt>timeout</tt> </td><td 
colspan="1" rowspan="1" class="confluenceTd"> <tt>5000</tt> </td><td 
colspan="1" rowspan="1" class="confluenceTd"> the time interval to wait on 
connection before timing out. </td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"> <tt>create</tt> </td><td colspan="1" rowspan="1" 
class="confluenceTd"> <tt>false</tt> </td><td c
 olspan="1" rowspan="1" class="confluenceTd"> should the endpoint create the 
node if it does not currently exist. </td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"> <tt>createMode</tt> </td><td colspan="1" rowspan="1" 
class="confluenceTd"> <tt>EPHEMERAL</tt> </td><td colspan="1" rowspan="1" 
class="confluenceTd"> the create mode that should be used for the newly created 
node (see below). </td></tr><tr><td colspan="1" rowspan="1" 
class="confluenceTd"> <tt>sendEmptyMessageOnDelete</tt> </td><td colspan="1" 
rowspan="1" class="confluenceTd"> <tt>true</tt> </td><td colspan="1" 
rowspan="1" class="confluenceTd"> <b>Camel 2.10:</b> upon the delete of a 
znode, should an empty message be send to the consumer 
</td></tr></tbody></table>
 </div>
 </div>
 
@@ -131,12 +132,13 @@ from(<span class="code-quote">"zookeeper
 </div></div>
 
 <h4><a shape="rect" 
name="Zookeeper-Readingfromaznode%28additionalCamel2.10onwards%29"></a>Reading 
from a znode - (additional Camel 2.10 onwards)</h4>
+
 <p>When data is read due to a WatchedEvent received from the ZooKeeper 
ensemble, the CamelZookeeperEventType header holds ZooKeeper's <a shape="rect" 
class="external-link" 
href="http://zookeeper.apache.org/doc/current/api/org/apache/zookeeper/Watcher.Event.EventType.html";>EventType</a>
 value from that WatchedEvent. If the data is read initially (not triggered by 
a WatchedEvent) the CamelZookeeperEventType header will not be set.</p>
 
 
 <h4><a shape="rect" name="Zookeeper-Writingtoaznode."></a>Writing to a 
znode.</h4>
 
-<p>The following snippet will write the payload of the exchange into the znode 
at '/somepath/somenode/' provided that it already exists </p>
+<p>The following snippet will write the payload of the exchange into the znode 
at '/somepath/somenode/' provided that it already exists</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent 
panelContent">
 <pre class="code-java">
 from(<span class="code-quote">"direct:write-to-znode"</span>).to(<span 
class="code-quote">"zookeeper:<span 
class="code-comment">//localhost:39913/somepath/somenode"</span>);</span>
@@ -152,13 +154,34 @@ template.sendBodyAndHeader(<span class="
 </pre>
 </div></div>
 
-<p>To also create the node if it does not exist the 'create' option should be 
used.  </p>
+<p>To also create the node if it does not exist the 'create' option should be 
used.</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent 
panelContent">
 <pre class="code-java">
 from(<span 
class="code-quote">"direct:create-and-write-to-znode"</span>).to(<span 
class="code-quote">"zookeeper:<span 
class="code-comment">//localhost:39913/somepath/somenode?create=<span 
class="code-keyword">true</span>"</span>);</span>
 </pre>
 </div></div>
 
+<p>Starting <b>version 2.11</b> it is also possible to <b>delete</b> a node 
using the header 'CamelZookeeperOperation' by setting it to 'DELETE'.</p>
+<div class="code panel" style="border-width: 1px;"><div class="codeContent 
panelContent">
+<pre class="code-java">
+from(<span 
class="code-quote">"direct:delete-znode"</span>).setHeader(ZooKeeperMessage.ZOOKEEPER_OPERATION,
 constant(<span class="code-quote">"DELETE"</span>)).to(<span 
class="code-quote">"zookeeper:<span 
class="code-comment">//localhost:39913/somepath/somenode"</span>);</span>
+</pre>
+</div></div>
+
+<p>or equivalently</p>
+
+<div class="code panel" style="border-width: 1px;"><div class="codeContent 
panelContent">
+<pre class="code-xml">
+<span class="code-tag">&lt;route&gt;</span>
+  <span class="code-tag">&lt;from uri=<span 
class="code-quote">"direct:delete-znode"</span> /&gt;</span>
+  <span class="code-tag">&lt;setHeader headerName=<span 
class="code-quote">"CamelZookeeperOperation"</span>&gt;</span>
+     <span class="code-tag">&lt;constant&gt;</span>DELETE<span 
class="code-tag">&lt;/constant&gt;</span>
+  <span class="code-tag">&lt;/setHeader&gt;</span>
+  <span class="code-tag">&lt;to uri=<span 
class="code-quote">"zookeeper://localhost:39913/somepath/somenode"</span> 
/&gt;</span>
+<span class="code-tag">&lt;/route&gt;</span>
+</pre>
+</div></div>
+
 <p>ZooKeeper nodes can have different types; they can be 'Ephemeral' or 
'Persistent' and 'Sequenced' or 'Unsequenced'. For further information of each 
type you can check <a shape="rect" class="external-link" 
href="http://zookeeper.apache.org/doc/trunk/zookeeperProgrammers.html#Ephemeral+Nodes";>here</a>.
 By default endpoints will create unsequenced, ephemeral nodes, but the type 
can be easily manipulated via a uri config parameter or via a special message 
header. The values expected for the create mode are simply the names from the 
CreateMode enumeration</p>
 
 <ul class="alternate" 
type="square"><li>PERSISTENT</li><li>PERSISTENT_SEQUENTIAL</li><li>EPHEMERAL</li><li>EPHEMERAL_SEQUENTIAL</li></ul>
@@ -186,7 +209,7 @@ template.sendBodyAndHeader(<span class="
 
 <p>ZooKeeper allows for very simple and effective leader election out of the 
box; This component exploits this election capability in a <a shape="rect" 
href="routepolicy.html" title="RoutePolicy">RoutePolicy</a> to control when and 
how routes are enabled. This policy would typically be used in fail-over 
scenarios, to control identical instances of a route across a cluster of Camel 
based servers. A very common scenario is a simple 'Master-Slave' setup where 
there are multiple instances of a route distributed across a cluster but only 
one of them, that of the master, should be running at a time. If the master 
fails, a new master should be elected from the available slaves and the route 
in this new master should be started.</p>
 
-<p>The policy uses a common znode path across all instances of the RoutePolicy 
that will be involved in the election. Each policy writes its id into this node 
and zookeeper will order the writes in the order it received them. The policy 
then reads the listing of the node to see what postion of its id; this postion 
is used to determine if the route should be started or not. The policy is 
configured at startup with the number of route instances that should be started 
across the cluster and if its position in the list is less than this value then 
its route will be started. For a Master-slave scenario, the route is configured 
with 1 route instance and only the first entry in the listing will start its 
route. All policies watch for updates to the listing and if the listing changes 
they recalculate if their route should be started. For more info on Zookeeper's 
Leader election capability see <a shape="rect" class="external-link" 
href="http://zookeeper.apache.org/doc/trunk/recipes.h
 tml#sc_leaderElection">this page</a>. </p>
+<p>The policy uses a common znode path across all instances of the RoutePolicy 
that will be involved in the election. Each policy writes its id into this node 
and zookeeper will order the writes in the order it received them. The policy 
then reads the listing of the node to see what postion of its id; this postion 
is used to determine if the route should be started or not. The policy is 
configured at startup with the number of route instances that should be started 
across the cluster and if its position in the list is less than this value then 
its route will be started. For a Master-slave scenario, the route is configured 
with 1 route instance and only the first entry in the listing will start its 
route. All policies watch for updates to the listing and if the listing changes 
they recalculate if their route should be started. For more info on Zookeeper's 
Leader election capability see <a shape="rect" class="external-link" 
href="http://zookeeper.apache.org/doc/trunk/recipes.h
 tml#sc_leaderElection">this page</a>.</p>
 
 <p>The following example uses the node '/someapplication/somepolicy' for the 
election and is set up to start only the top '1' entries in the node listing 
i.e. elect a master</p>
 <div class="code panel" style="border-width: 1px;"><div class="codeContent 
panelContent">
@@ -194,8 +217,7 @@ template.sendBodyAndHeader(<span class="
 ZooKeeperRoutePolicy policy = <span class="code-keyword">new</span> 
ZooKeeperRoutePolicy(<span 
class="code-quote">"zookeeper:localhost:39913/someapp/somepolicy"</span>, 1);
 from(<span 
class="code-quote">"direct:policy-controlled"</span>).routePolicy(policy).to(<span
 class="code-quote">"mock:controlled"</span>);
 </pre>
-</div></div>        
-
+</div></div>
 <h3><a shape="rect" name="Zookeeper-SeeAlso"></a>See Also</h3>
 <ul><li><a shape="rect" href="configuring-camel.html" title="Configuring 
Camel">Configuring Camel</a></li><li><a shape="rect" href="component.html" 
title="Component">Component</a></li><li><a shape="rect" href="endpoint.html" 
title="Endpoint">Endpoint</a></li><li><a shape="rect" 
href="getting-started.html" title="Getting Started">Getting 
Started</a></li></ul>
 </div>


Reply via email to