You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2016/08/16 08:03:44 UTC

[20/51] [partial] camel git commit: CAMEL-9541: Use -component as suffix for component docs.

http://git-wip-us.apache.org/repos/asf/camel/blob/9c0b7baf/components/camel-hazelcast/src/main/docs/hazelcast.adoc
----------------------------------------------------------------------
diff --git a/components/camel-hazelcast/src/main/docs/hazelcast.adoc b/components/camel-hazelcast/src/main/docs/hazelcast.adoc
deleted file mode 100644
index f14620d..0000000
--- a/components/camel-hazelcast/src/main/docs/hazelcast.adoc
+++ /dev/null
@@ -1,1402 +0,0 @@
-[[HazelcastComponent-HazelcastComponent]]
-Hazelcast Component
-~~~~~~~~~~~~~~~~~~~
-
-*Available as of Camel 2.7*
-
-The *hazelcast:* component allows you to work with the
-http://www.hazelcast.com[Hazelcast] distributed data grid / cache.
-Hazelcast is a in memory data grid, entirely written in Java (single
-jar). It offers a great palette of different data stores like map, multi
-map (same key, n values), queue, list and atomic number. The main reason
-to use Hazelcast is its simple cluster support. If you have enabled
-multicast on your network you can run a cluster with hundred nodes with
-no extra configuration. Hazelcast can simply configured to add
-additional features like n copies between nodes (default is 1), cache
-persistence, network configuration (if needed), near cache, enviction
-and so on. For more information consult the Hazelcast documentation on
-http://www.hazelcast.com/docs.jsp[http://www.hazelcast.com/docs.jsp].
-
-Maven users will need to add the following dependency to their `pom.xml`
-for this component:
-
-[source,xml]
-------------------------------------------------------------
-<dependency>
-    <groupId>org.apache.camel</groupId>
-    <artifactId>camel-hazelcast</artifactId>
-    <version>x.x.x</version>
-    <!-- use the same version as your Camel core version -->
-</dependency>
-------------------------------------------------------------
-
-[[HazelcastComponent-URIformat]]
-URI format
-^^^^^^^^^^
-
-[source,java]
--------------------------------------------------------------------------------------------------------------------------
-hazelcast:[ map | multimap | queue | topic | seda | set | atomicvalue | instance | list | ringbuffer]:cachename[?options]
--------------------------------------------------------------------------------------------------------------------------
-
-* Topic support is available as of Camel 2.15.�*
-
-
-* RingBuffer support is available as of Camel 2.16.�*
-
-[[HazelcastComponent-Options]]
-Options
-^^^^^^^
-
-
-
-// component options: START
-The Hazelcast component supports 1 options which are listed below.
-
-
-
-{% raw %}
-[width="100%",cols="2s,1m,8",options="header"]
-|=======================================================================
-| Name | Java Type | Description
-| hazelcastInstance | HazelcastInstance | The hazelcast instance reference which can be used for hazelcast endpoint. If you don't specify the instance reference camel use the default hazelcast instance from the camel-hazelcast instance.
-|=======================================================================
-{% endraw %}
-// component options: END
-
-
-
-
-
-// endpoint options: START
-The Hazelcast component supports 13 endpoint options which are listed below:
-
-{% raw %}
-[width="100%",cols="2s,1,1m,1m,5",options="header"]
-|=======================================================================
-| Name | Group | Default | Java Type | Description
-| command | common |  | HazelcastCommand | *Required* What operation to perform.
-| cacheName | common |  | String | *Required* The name of the cache
-| defaultOperation | common |  | int | To specify a default operation to use if no operation header has been provided.
-| hazelcastInstance | common |  | HazelcastInstance | The hazelcast instance reference which can be used for hazelcast endpoint.
-| hazelcastInstanceName | common |  | String | The hazelcast instance reference name which can be used for hazelcast endpoint. If you don't specify the instance reference camel use the default hazelcast instance from the camel-hazelcast instance.
-| bridgeErrorHandler | consumer | false | boolean | Allows for bridging the consumer to the Camel routing Error Handler which mean any exceptions occurred while the consumer is trying to pickup incoming messages or the likes will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions that will be logged at WARN/ERROR level and ignored.
-| exceptionHandler | consumer (advanced) |  | ExceptionHandler | To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this options is not in use. By default the consumer will deal with exceptions that will be logged at WARN/ERROR level and ignored.
-| exchangePattern | advanced | InOnly | ExchangePattern | Sets the default exchange pattern when creating an exchange
-| synchronous | advanced | false | boolean | Sets whether synchronous processing should be strictly used or Camel is allowed to use asynchronous processing (if supported).
-| concurrentConsumers | seda | 1 | int | To use concurrent consumers polling from the SEDA queue.
-| pollTimeout | seda | 1000 | int | The timeout used when consuming from the SEDA queue. When a timeout occurs the consumer can check whether it is allowed to continue running. Setting a lower value allows the consumer to react more quickly upon shutdown.
-| transacted | seda | false | boolean | If set to true then the consumer runs in transaction mode where the messages in the seda queue will only be removed if the transaction commits which happens when the processing is complete.
-| transferExchange | seda | false | boolean | If set to true the whole Exchange will be transfered. If header or body contains not serializable objects they will be skipped.
-|=======================================================================
-{% endraw %}
-// endpoint options: END
-
-
-
-[[HazelcastComponent-Sections]]
-Sections
-^^^^^^^^
-
-1.  Usage of link:hazelcast-component.html[#map]
-2.  Usage of link:hazelcast-component.html[#multimap]
-3.  Usage of link:hazelcast-component.html[#queue]
-4.  Usage of link:hazelcast-component.html[#topic]
-5.  Usage of link:hazelcast-component.html[#list]
-6.  Usage of link:hazelcast-component.html[#seda]
-7.  Usage of link:hazelcast-component.html[atomic number]
-8.  Usage of link:hazelcast-component.html[#cluster] support (instance)
-9.  Usage of link:hazelcast-component.html[#replicatedmap]�
-10. Usage of�link:hazelcast-component.html[#ringbuffer]�
-
-[[HazelcastComponent-UsageofMap]]
-Usage of Map
-^^^^^^^^^^^^
-
-[[HazelcastComponent-mapcacheproducer-to-map]]
-Map cache producer - to("hazelcast:map:foo")
-++++++++++++++++++++++++++++++++++++++++++++
-
-If you want to store a value in a map you can use the map cache
-producer. The map cache producer provides 5 operations (put, get,
-update, delete, query). For the first 4 you have to provide the
-operation inside the "hazelcast.operation.type" header variable. In Java
-DSL you can use the constants from `org.apache.camel.component.hazelcast.HazelcastConstants`.
-
-Header Variables for the request message:
-
-[width="100%",cols="10%,10%,80%",options="header",]
-|=======================================================================
-|Name |Type |Description
-|`CamelHazelcastOperationType` |`String` |valid values are: put, delete, get, update, query, getAll, putIfAbsent, clear, keySet. 
-
-|`CamelHazelcastObjectId` |`String` |the object id to store / find your object inside the cache (not needed for the query operation)
-|=======================================================================
-
-You can call the samples with:
-
-[source,java]
--------------------------------------------------------------------------------------------------------------------
-template.sendBodyAndHeader("direct:[put|get|update|delete|query]", "my-foo", HazelcastConstants.OBJECT_ID, "4711");
--------------------------------------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Sampleforput:]]
-Sample for *put*:
-
-Java DSL:
-
-[source,java]
-------------------------------------------------------------------------------------
-from("direct:put")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUT_OPERATION))
-.toF("hazelcast:%sfoo", HazelcastConstants.MAP_PREFIX);
-------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
-    <from uri="direct:put" />
-        <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
-    <setHeader headerName="hazelcast.operation.type">
-        <constant>put</constant>
-    </setHeader>
-    <to uri="hazelcast:map:foo" />
-</route>
------------------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Sampleforget:]]
-Sample for *get*:
-
-Java DSL:
-
-[source,java]
-------------------------------------------------------------------------------------
-from("direct:get")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_OPERATION))
-.toF("hazelcast:%sfoo", HazelcastConstants.MAP_PREFIX)
-.to("seda:out");
-------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
-    <from uri="direct:get" />
-        <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
-    <setHeader headerName="hazelcast.operation.type">
-        <constant>get</constant>
-    </setHeader>
-    <to uri="hazelcast:map:foo" />
-    <to uri="seda:out" />
-</route>
------------------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Sampleforupdate:]]
-Sample for *update*:
-
-Java DSL:
-
-[source,java]
----------------------------------------------------------------------------------------
-from("direct:update")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.UPDATE_OPERATION))
-.toF("hazelcast:%sfoo", HazelcastConstants.MAP_PREFIX);
----------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
-    <from uri="direct:update" />
-        <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
-    <setHeader headerName="hazelcast.operation.type">
-        <constant>update</constant>
-    </setHeader>
-    <to uri="hazelcast:map:foo" />
-</route>
------------------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Samplefordelete:]]
-Sample for *delete*:
-
-Java DSL:
-
-[source,java]
----------------------------------------------------------------------------------------
-from("direct:delete")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.DELETE_OPERATION))
-.toF("hazelcast:%sfoo", HazelcastConstants.MAP_PREFIX);
----------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
-    <from uri="direct:delete" />
-        <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
-    <setHeader headerName="hazelcast.operation.type">
-        <constant>delete</constant>
-    </setHeader>
-    <to uri="hazelcast:map:foo" />
-</route>
------------------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Sampleforquery]]
-Sample for *query*
-
-Java DSL:
-
-[source,java]
---------------------------------------------------------------------------------------
-from("direct:query")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.QUERY_OPERATION))
-.toF("hazelcast:%sfoo", HazelcastConstants.MAP_PREFIX)
-.to("seda:out");
---------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
-    <from uri="direct:query" />
-        <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
-    <setHeader headerName="hazelcast.operation.type">
-        <constant>query</constant>
-    </setHeader>
-    <to uri="hazelcast:map:foo" />
-    <to uri="seda:out" />
-</route>
------------------------------------------------------------------------------------------------
-
-For the query operation Hazelcast offers a SQL like syntax to query your
-distributed map.
-
-[source,java]
--------------------------------------------------------------------------------
-String q1 = "bar > 1000";
-template.sendBodyAndHeader("direct:query", null, HazelcastConstants.QUERY, q1);
--------------------------------------------------------------------------------
-
-[[HazelcastComponent-mapcacheconsumer-from-map]]
-Map cache consumer - from("hazelcast:map:foo")
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
-Hazelcast provides event listeners on their data grid. If you want to be
-notified if a cache will be manipulated, you can use the map consumer.
-There're 4 events: *put*, *update*, *delete* and *envict*. The event
-type will be stored in the "*hazelcast.listener.action*" header
-variable. The map consumer provides some additional information inside
-these variables:
-
-Header Variables inside the response message:
-
-[width="100%",cols="10%,10%,80%",options="header",]
-|=======================================================================
-|Name |Type |Description
-
-|`CamelHazelcastListenerTime` |`Long` |time of the event in millis
-
-|`CamelHazelcastListenerType` |`String` |the map consumer sets here "cachelistener"
-
-|`CamelHazelcastListenerAction` |`String` |type of event - here *added*, *updated*, *envicted* and *removed*.
-
-|`CamelHazelcastObjectId` |`String` |the oid of the object
-
-|`CamelHazelcastCacheName` |`String` |the name of the cache - e.g. "foo"
-
-|`CamelHazelcastCacheType` |`String` |the type of the cache - here map
-|=======================================================================
-
-The object value will be stored within *put* and *update* actions inside
-the message body.
-
-Here's a sample:
-
-[source,java]
---------------------------------------------------------------------------------------------
-fromF("hazelcast:%sfoo", HazelcastConstants.MAP_PREFIX)
-.log("object...")
-.choice()
-    .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED))
-         .log("...added")
-         .to("mock:added")
-    .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ENVICTED))
-         .log("...envicted")
-         .to("mock:envicted")
-    .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.UPDATED))
-         .log("...updated")
-         .to("mock:updated")
-    .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.REMOVED))
-         .log("...removed")
-         .to("mock:removed")
-    .otherwise()
-         .log("fail!");
---------------------------------------------------------------------------------------------
-
-[[HazelcastComponent-UsageofMultiMap]]
-Usage of Multi Map
-^^^^^^^^^^^^^^^^^^
-
-[[HazelcastComponent-multimapcacheproducer-to-multimap]]
-multimap cache producer - to("hazelcast:multimap:foo")
-++++++++++++++++++++++++++++++++++++++++++++++++++++++
-
-A multimap is a cache where you can store n values to one key. The
-multimap producer provides 4 operations (put, get, removevalue, delete).
-
-Header Variables for the request message:
-
-[width="100%",cols="10%,10%,80%",options="header",]
-|=======================================================================
-|Name |Type |Description
-
-|`CamelHazelcastOperationType` |`String` |valid values are: put, get, removevalue, delete *From Camel 2.16:* clear.
-
-|`CamelHazelcastObjectId` |`String` |the object id to store / find your object inside the cache
-|=======================================================================
-
-[[HazelcastComponent-Sampleforput:.1]]
-Sample for *put*:
-
-Java DSL:
-
-[source,java]
-------------------------------------------------------------------------------------
-from("direct:put")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUT_OPERATION))
-.to(String.format("hazelcast:%sbar", HazelcastConstants.MULTIMAP_PREFIX));
-------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
-    <from uri="direct:put" />
-    <log message="put.."/>
-        <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
-    <setHeader headerName="hazelcast.operation.type">
-        <constant>put</constant>
-    </setHeader>
-    <to uri="hazelcast:multimap:foo" />
-</route>
------------------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Sampleforremovevalue:]]
-Sample for *removevalue*:
-
-Java DSL:
-
-[source,java]
---------------------------------------------------------------------------------------------
-from("direct:removevalue")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.REMOVEVALUE_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.MULTIMAP_PREFIX);
---------------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
-    <from uri="direct:removevalue" />
-    <log message="removevalue..."/>
-        <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
-    <setHeader headerName="hazelcast.operation.type">
-        <constant>removevalue</constant>
-    </setHeader>
-    <to uri="hazelcast:multimap:foo" />
-</route>
------------------------------------------------------------------------------------------------
-
-To remove a value you have to provide the value you want to remove
-inside the message body. If you have a multimap object
-\{`key: "4711" values: { "my-foo", "my-bar"`}} you have to put "my-foo"
-inside the message body to remove the "my-foo" value.
-
-[[HazelcastComponent-Sampleforget:.1]]
-Sample for *get*:
-
-Java DSL:
-
-[source,java]
-------------------------------------------------------------------------------------
-from("direct:get")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.MULTIMAP_PREFIX)
-.to("seda:out");
-------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
-    <from uri="direct:get" />
-    <log message="get.."/>
-        <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
-    <setHeader headerName="hazelcast.operation.type">
-        <constant>get</constant>
-    </setHeader>
-    <to uri="hazelcast:multimap:foo" />
-    <to uri="seda:out" />
-</route>
------------------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Samplefordelete:.1]]
-Sample for *delete*:
-
-Java DSL:
-
-[source,java]
----------------------------------------------------------------------------------------
-from("direct:delete")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.DELETE_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.MULTIMAP_PREFIX);
----------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
-    <from uri="direct:delete" />
-    <log message="delete.."/>
-        <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
-    <setHeader headerName="hazelcast.operation.type">
-        <constant>delete</constant>
-    </setHeader>
-    <to uri="hazelcast:multimap:foo" />
-</route>
------------------------------------------------------------------------------------------------
-
-you can call them in your test class with:
-
-[source,java]
-------------------------------------------------------------------------------------------------------------------
-template.sendBodyAndHeader("direct:[put|get|removevalue|delete]", "my-foo", HazelcastConstants.OBJECT_ID, "4711");
-------------------------------------------------------------------------------------------------------------------
-
-[[HazelcastComponent-multimapcacheconsumer-from-multimap]]
-multimap cache consumer - from("hazelcast:multimap:foo")
-++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-
-For the multimap cache this component provides the same listeners /
-variables as for the map cache consumer (except the update and enviction
-listener). The only difference is the *multimap* prefix inside the URI.
-Here is a sample:
-
-[source,java]
---------------------------------------------------------------------------------------------------
-fromF("hazelcast:%sbar", HazelcastConstants.MULTIMAP_PREFIX)
-.log("object...")
-.choice()
-    .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED))
-        .log("...added")
-                .to("mock:added")
-        //.when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ENVICTED))
-        //        .log("...envicted")
-        //        .to("mock:envicted")
-        .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.REMOVED))
-                .log("...removed")
-                .to("mock:removed")
-        .otherwise()
-                .log("fail!");
---------------------------------------------------------------------------------------------------
-
-Header Variables inside the response message:
-
-[width="100%",cols="10%,10%,80%",options="header",]
-|=======================================================================
-|Name |Type |Description
-
-|`CamelHazelcastListenerTime` |`Long` |time of the event in millis
-
-|`CamelHazelcastListenerType` |`String` |the map consumer sets here "cachelistener"
-
-|`CamelHazelcastListenerAction` |`String` |type of event - here *added* and *removed* (and soon *envicted*)
-
-|`CamelHazelcastObjectId` |`String` |the oid of the object
-
-|`CamelHazelcastCacheName` |`String` |the name of the cache - e.g. "foo"
-
-|`CamelHazelcastCacheType` |`String` |the type of the cache - here multimap
-|=======================================================================
-
-[[HazelcastComponent-UsageofQueue]]
-Usage of Queue
-^^^^^^^^^^^^^^
-
-[[HazelcastComponent-Queueproducer]]
-Queue producer \u2013 to(\u201chazelcast:queue:foo\u201d)
-++++++++++++++++++++++++++++++++++++++++++
-
-The queue producer provides 6 operations (add, put, poll, peek, offer,
-removevalue).
-
-[[HazelcastComponent-Sampleforadd:]]
-Sample for *add*:
-
-[source,java]
-------------------------------------------------------------------------------------
-from("direct:add")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.ADD_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.QUEUE_PREFIX);
-------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Sampleforput:.2]]
-Sample for *put*:
-
-[source,java]
-------------------------------------------------------------------------------------
-from("direct:put")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUT_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.QUEUE_PREFIX);
-------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Sampleforpoll:]]
-Sample for *poll*:
-
-[source,java]
--------------------------------------------------------------------------------------
-from("direct:poll")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.POLL_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.QUEUE_PREFIX);
--------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Sampleforpeek:]]
-Sample for *peek*:
-
-[source,java]
--------------------------------------------------------------------------------------
-from("direct:peek")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PEEK_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.QUEUE_PREFIX);
--------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Sampleforoffer:]]
-Sample for *offer*:
-
-[source,java]
---------------------------------------------------------------------------------------
-from("direct:offer")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.OFFER_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.QUEUE_PREFIX);
---------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Sampleforremovevalue:.1]]
-Sample for *removevalue*:
-
-[source,java]
---------------------------------------------------------------------------------------------
-from("direct:removevalue")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.REMOVEVALUE_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.QUEUE_PREFIX);
---------------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Queueconsumer]]
-Queue consumer \u2013 from(\u201chazelcast:queue:foo\u201d)
-++++++++++++++++++++++++++++++++++++++++++++
-
-The queue consumer provides 2 operations (add, remove).
-
-[source,java]
--------------------------------------------------------------------------------------------
-fromF("hazelcast:%smm", HazelcastConstants.QUEUE_PREFIX)
-   .log("object...")
-   .choice()
-    .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED))
-            .log("...added")
-        .to("mock:added")
-    .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.REMOVED))
-        .log("...removed")
-        .to("mock:removed")
-    .otherwise()
-        .log("fail!");
--------------------------------------------------------------------------------------------
-
-[[HazelcastComponent-topic]]
-
-[[HazelcastComponent-UsageofTopic]]
-Usage of Topic
-^^^^^^^^^^^^^^
-
-[[HazelcastComponent-Topicproducer]]
-Topic producer \u2013 to(\u201chazelcast:topic:foo\u201d)
-++++++++++++++++++++++++++++++++++++++++++
-
-The topic producer provides only one operation (publish).
-
-[[HazelcastComponent-Sampleforpublish:]]
-Sample for�*publish*:
-
-[source,java]
-----------------------------------------------------------------------------------------
-from("direct:add")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUBLISH_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.PUBLISH_OPERATION);
-----------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Topicconsumer]]
-Topic consumer \u2013 from(\u201chazelcast:topic:foo\u201d)
-++++++++++++++++++++++++++++++++++++++++++++
-
-The topic consumer provides only one operation (received). This
-component is supposed to support multiple consumption as it's expected
-when it comes to topics so you are free to have as much consumers as you
-need on the same hazelcast topic.
-
-[source,java]
---------------------------------------------------------------------------------------------
-fromF("hazelcast:%sfoo", HazelcastConstants.TOPIC_PREFIX)
-  .choice()
-    .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.RECEIVED))
-      .log("...message received")
-    .otherwise()
-      .log("...this should never have happened")
---------------------------------------------------------------------------------------------
-
-�
-
-[[HazelcastComponent-UsageofList]]
-Usage of List
-^^^^^^^^^^^^^
-
-[[HazelcastComponent-Listproducer]]
-List producer \u2013 to(\u201chazelcast:list:foo\u201d)
-++++++++++++++++++++++++++++++++++++++++
-
-The list producer provides 4 operations (add, addAll, set, get,
-removevalue, removeAll, clear).
-
-[[HazelcastComponent-Sampleforadd:.1]]
-Sample for *add*:
-
-[source,java]
-------------------------------------------------------------------------------------
-from("direct:add")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.ADD_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.LIST_PREFIX);
-------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Sampleforget:.2]]
-Sample for *get*:
-
-[source,java]
-------------------------------------------------------------------------------------
-from("direct:get")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.LIST_PREFIX)
-.to("seda:out");
-------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Sampleforsetvalue:]]
-Sample for *setvalue*:
-
-[source,java]
------------------------------------------------------------------------------------------
-from("direct:set")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.SETVALUE_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.LIST_PREFIX);
------------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Sampleforremovevalue:.2]]
-Sample for *removevalue*:
-
-[source,java]
---------------------------------------------------------------------------------------------
-from("direct:removevalue")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.REMOVEVALUE_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.LIST_PREFIX);
---------------------------------------------------------------------------------------------
-
-Note that�*CamelHazelcastObjectIndex* header is used for indexing
-purpose.
-
-[[HazelcastComponent-Thelistconsumerprovides2operationsListconsumer]]
-The list consumer provides 2 operations (add, remove).List consumer \u2013 from(\u201chazelcast:list:foo\u201d)
-++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-
-[source,java]
------------------------------------------------------------------------------------------------
-fromF("hazelcast:%smm", HazelcastConstants.LIST_PREFIX)
-    .log("object...")
-    .choice()
-        .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED))
-            .log("...added")
-                        .to("mock:added")
-        .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.REMOVED))
-            .log("...removed")
-                        .to("mock:removed")
-                .otherwise()
-                        .log("fail!");
------------------------------------------------------------------------------------------------
-
-[[HazelcastComponent-UsageofSEDA]]
-Usage of SEDA
-^^^^^^^^^^^^^
-
-SEDA component differs from the rest components provided. It implements
-a work-queue in order to support asynchronous SEDA architectures,
-similar to the core "SEDA" component.
-
-[[HazelcastComponent-SEDAproducer]]
-SEDA producer \u2013 to(\u201chazelcast:seda:foo\u201d)
-++++++++++++++++++++++++++++++++++++++++
-
-The SEDA producer provides no operations. You only send data to the
-specified queue.
-
-[width="100%",cols="10%,10%,80%",options="header",]
-|=======================================================================
-|Name |Default value |Description
-
-|`transferExchange` |`false` | if set to true the whole Exchange will be transfered. If
-header or body contains not serializable objects, they will be skipped.
-|=======================================================================
-
-Java DSL :
-
-[source,java]
---------------------------
-from("direct:foo")
-.to("hazelcast:seda:foo");
---------------------------
-
-Spring DSL :
-
-[source,java]
-----------------------------------
-<route>
-   <from uri="direct:start" />
-   <to uri="hazelcast:seda:foo" />
-</route>
-----------------------------------
-
-[[HazelcastComponent-SEDAconsumer]]
-SEDA consumer \u2013 from(\u201chazelcast:seda:foo\u201d)
-++++++++++++++++++++++++++++++++++++++++++
-
-The SEDA consumer provides no operations. You only retrieve data from
-the specified queue.
-
-[width="100%",cols="10%,10%,80%",options="header",]
-|=======================================================================
-|Name |Default value |Description
-
-|`pollInterval` |`1000` |The timeout used when consuming from the SEDA queue. When a timeout
-occurs, the consumer can check whether it is allowed to continue
-running. Setting a lower value allows the consumer to react more quickly
-upon shutdown. (*deprecated* from Camel 2.15 onwards, use pollTimeout
-instead).
-
-|`pollTimeout` |1000 | The timeout used when consuming from the SEDA queue. When
-a timeout occurs, the consumer can check whether it is allowed to
-continue running. Setting a lower value allows the consumer to react
-more quickly upon shutdown.
-
-|`concurrentConsumers` |`1` |To use concurrent consumers polling from the SEDA queue.
-
-|`transferExchange` |`false`| if set to true the whole Exchange will be transfered. If
-header or body contains not serializable objects, they will be skipped.
-
-|`transacted` |`false`| if set to true then the consumer runs in transaction
-mode, where the messages in the seda queue will only be removed if the
-transaction commits, which happens when the processing is complete.
-|=======================================================================
-
-Java DSL :
-
-[source,java]
---------------------------
-from("hazelcast:seda:foo")
-.to("mock:result");
---------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------
-<route>
-  <from uri="hazelcast:seda:foo" />
-  <to uri="mock:result" />
-</route>
------------------------------------
-
-[[HazelcastComponent-UsageofAtomicNumber]]
-Usage of Atomic Number
-^^^^^^^^^^^^^^^^^^^^^^
-
-* There is no consumer for this endpoint! *
-
-[[HazelcastComponent-atomicnumberproducer]]
-atomic number producer - to("hazelcast:atomicnumber:foo")
-+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-
-An atomic number is an object that simply provides a grid wide number
-(long). The operations for this producer are setvalue (set the number
-with a given value), get, increase (+1), decrease (-1) and destroy.
-
-Header Variables for the request message:
-
-[width="100%",cols="10%,10%,80%",options="header",]
-|=======================================================================
-|Name |Type |Description
-
-|`CamelHazelcastOperationType` |`String` |valid values are: setvalue, get, increase, decrease, destroy 
-|=======================================================================
-
-[[HazelcastComponent-Sampleforset:]]
-Sample for *set*:
-
-Java DSL:
-
-[source,java]
------------------------------------------------------------------------------------------
-from("direct:set")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.SETVALUE_OPERATION))
-.toF("hazelcast:%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX);
------------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
-    <from uri="direct:set" />
-        <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
-    <setHeader headerName="hazelcast.operation.type">
-        <constant>setvalue</constant>
-    </setHeader>
-    <to uri="hazelcast:atomicvalue:foo" />
-</route>
------------------------------------------------------------------------------------------------
-
-Provide the value to set inside the message body (here the value is 10):
-`template.sendBody("direct:set", 10);`
-
-[[HazelcastComponent-Sampleforget:.3]]
-Sample for *get*:
-
-Java DSL:
-
-[source,java]
-------------------------------------------------------------------------------------
-from("direct:get")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_OPERATION))
-.toF("hazelcast:%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX);
-------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
-    <from uri="direct:get" />
-        <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
-    <setHeader headerName="hazelcast.operation.type">
-        <constant>get</constant>
-    </setHeader>
-    <to uri="hazelcast:atomicvalue:foo" />
-</route>
------------------------------------------------------------------------------------------------
-
-You can get the number with
-`long body = template.requestBody("direct:get", null, Long.class);`.
-
-[[HazelcastComponent-Sampleforincrement:]]
-Sample for *increment*:
-
-Java DSL:
-
-[source,java]
-------------------------------------------------------------------------------------------
-from("direct:increment")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.INCREMENT_OPERATION))
-.toF("hazelcast:%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX);
-------------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
-    <from uri="direct:increment" />
-        <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
-    <setHeader headerName="hazelcast.operation.type">
-        <constant>increment</constant>
-    </setHeader>
-    <to uri="hazelcast:atomicvalue:foo" />
-</route>
------------------------------------------------------------------------------------------------
-
-The actual value (after increment) will be provided inside the message
-body.
-
-[[HazelcastComponent-Samplefordecrement:]]
-Sample for *decrement*:
-
-Java DSL:
-
-[source,java]
-------------------------------------------------------------------------------------------
-from("direct:decrement")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.DECREMENT_OPERATION))
-.toF("hazelcast:%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX);
-------------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
-    <from uri="direct:decrement" />
-        <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
-    <setHeader headerName="hazelcast.operation.type">
-        <constant>decrement</constant>
-    </setHeader>
-    <to uri="hazelcast:atomicvalue:foo" />
-</route>
------------------------------------------------------------------------------------------------
-
-The actual value (after decrement) will be provided inside the message
-body.
-
-[[HazelcastComponent-Samplefordestroy]]
-Sample for *destroy*
-
-Java DSL:
-
-[source,java]
-----------------------------------------------------------------------------------------
-from("direct:destroy")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.DESTROY_OPERATION))
-.toF("hazelcast:%sfoo", HazelcastConstants.ATOMICNUMBER_PREFIX);
-----------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
-    <from uri="direct:destroy" />
-        <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
-    <setHeader headerName="hazelcast.operation.type">
-        <constant>destroy</constant>
-    </setHeader>
-    <to uri="hazelcast:atomicvalue:foo" />
-</route>
------------------------------------------------------------------------------------------------
-
-[[HazelcastComponent-clustersupport]]
-cluster support
-^^^^^^^^^^^^^^^
-
-* This endpoint provides no producer! *
-
-[[HazelcastComponent-instanceconsumer-from]]
-instance consumer - from("hazelcast:instance:foo")
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
-Hazelcast makes sense in one single "server node", but it's extremly
-powerful in a clustered environment. The instance consumer fires if a
-new cache instance will join or leave the cluster.
-
-Here's a sample:
-
-[source,java]
------------------------------------------------------------------------------------------
-fromF("hazelcast:%sfoo", HazelcastConstants.INSTANCE_PREFIX)
-.log("instance...")
-.choice()
-    .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED))
-        .log("...added")
-        .to("mock:added")
-    .otherwise()
-        .log("...removed")
-        .to("mock:removed");
------------------------------------------------------------------------------------------
-
-Each event provides the following information inside the message header:
-
-Header Variables inside the response message:
-
-
-[width="100%",cols="10%,10%,80%",options="header",]
-|=======================================================================
-|Name |Type |Description
-
-|`CamelHazelcastListenerTime` |`Long` |time of the event in millis
-
-|`CamelHazelcastListenerType` |`String` |the map consumer sets here "instancelistener"
-
-|`CamelHazelcastListenerAction` |`String` |type of event - here *added* or *removed*.
-
-|`CamelHazelcastInstanceHost` |`String` | host name of the instance
-
-|`CamelHazelcastInstancePort` |`Integer` |port number of the instance
-|=======================================================================
-
-[[HazelcastComponent-Usinghazelcastreference]]
-Using hazelcast reference
-^^^^^^^^^^^^^^^^^^^^^^^^^
-
-[[HazelcastComponent-Byitsname]]
-By its name
-+++++++++++
-
-[source,xml]
---------------------------------------------------------------------------------------------------------
-<bean id="hazelcastLifecycle" class="com.hazelcast.core.LifecycleService"
-      factory-bean="hazelcastInstance" factory-method="getLifecycleService"
-      destroy-method="shutdown" />
-
-<bean id="config" class="com.hazelcast.config.Config">
-    <constructor-arg type="java.lang.String" value="HZ.INSTANCE" />
-</bean>
-
-<bean id="hazelcastInstance" class="com.hazelcast.core.Hazelcast" factory-method="newHazelcastInstance">
-    <constructor-arg type="com.hazelcast.config.Config" ref="config"/>
-</bean>
-<camelContext xmlns="http://camel.apache.org/schema/spring">
-    <route id="testHazelcastInstanceBeanRefPut">
-        <from uri="direct:testHazelcastInstanceBeanRefPut"/>
-        <setHeader headerName="CamelHazelcastOperationType">
-            <constant>put</constant>
-        </setHeader>
-        <to uri="hazelcast:map:testmap?hazelcastInstanceName=HZ.INSTANCE"/>
-    </route>
-
-    <route id="testHazelcastInstanceBeanRefGet">
-        <from uri="direct:testHazelcastInstanceBeanRefGet" />
-        <setHeader headerName="CamelHazelcastOperationType">
-            <constant>get</constant>
-        </setHeader>
-        <to uri="hazelcast:map:testmap?hazelcastInstanceName=HZ.INSTANCE"/>
-        <to uri="seda:out" />
-    </route>
-</camelContext>
---------------------------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Byinstance]]
-By instance
-+++++++++++
-
-[source,xml]
-------------------------------------------------------------------------------
-<bean id="hazelcastInstance" class="com.hazelcast.core.Hazelcast"
-      factory-method="newHazelcastInstance" />
-<bean id="hazelcastLifecycle" class="com.hazelcast.core.LifecycleService"
-      factory-bean="hazelcastInstance" factory-method="getLifecycleService"
-      destroy-method="shutdown" />
-
-<camelContext xmlns="http://camel.apache.org/schema/spring">
-    <route id="testHazelcastInstanceBeanRefPut">
-        <from uri="direct:testHazelcastInstanceBeanRefPut"/>
-        <setHeader headerName="CamelHazelcastOperationType">
-            <constant>put</constant>
-        </setHeader>
-        <to uri="hazelcast:map:testmap?hazelcastInstance=#hazelcastInstance"/>
-    </route>
-
-    <route id="testHazelcastInstanceBeanRefGet">
-        <from uri="direct:testHazelcastInstanceBeanRefGet" />
-        <setHeader headerName="CamelHazelcastOperationType">
-            <constant>get</constant>
-        </setHeader>
-        <to uri="hazelcast:map:testmap?hazelcastInstance=#hazelcastInstance"/>
-        <to uri="seda:out" />
-    </route>
-</camelContext>
-------------------------------------------------------------------------------
-
-[[HazelcastComponent-PublishinghazelcastinstanceasanOSGIservice]]
-Publishing hazelcast instance as an OSGI service
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-
-If operating in an OSGI container and you would want to use one instance
-of hazelcast across all bundles in the same container. You can publish
-the instance as an OSGI service and bundles using the cache al need is
-to reference the service in the hazelcast endpoint.
-
-[[HazelcastComponent-BundleAcreateaninstanceandpublishesitasanOSGIservice]]
-Bundle A create an instance and publishes it as an OSGI service
-+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
-
-�
-
-[source,xml]
---------------------------------------------------------------------------------------------------------
-<bean id="config" class="com.hazelcast.config.FileSystemXmlConfig">
-    <argument type="java.lang.String" value="${hazelcast.config}"/>
-</bean>
-
-<bean id="hazelcastInstance" class="com.hazelcast.core.Hazelcast" factory-method="newHazelcastInstance">
-    <argument type="com.hazelcast.config.Config" ref="config"/>
-</bean>
-
-<!-- publishing the hazelcastInstance as a service -->
-<service ref="hazelcastInstance" interface="com.hazelcast.core.HazelcastInstance" />
---------------------------------------------------------------------------------------------------------
-
-[[HazelcastComponent-BundleBusestheinstance]]
-Bundle B uses the instance
-++++++++++++++++++++++++++
-
-[source,xml]
---------------------------------------------------------------------------------------
-<!-- referencing the hazelcastInstance as a service -->
-<reference ref="hazelcastInstance" interface="com.hazelcast.core.HazelcastInstance" />
-
-<camelContext xmlns="http://camel.apache.org/schema/blueprint">
-    <route id="testHazelcastInstanceBeanRefPut">
-        <from uri="direct:testHazelcastInstanceBeanRefPut"/>
-        <setHeader headerName="CamelHazelcastOperationType">
-            <constant>put</constant>
-        </setHeader>
-        <to uri="hazelcast:map:testmap?hazelcastInstance=#hazelcastInstance"/>
-    </route>
-
-    <route id="testHazelcastInstanceBeanRefGet">
-        <from uri="direct:testHazelcastInstanceBeanRefGet" />
-        <setHeader headerName="CamelHazelcastOperationType">
-            <constant>get</constant>
-        </setHeader>
-        <to uri="hazelcast:map:testmap?hazelcastInstance=#hazelcastInstance"/>
-        <to uri="seda:out" />
-    </route>
-</camelContext>
---------------------------------------------------------------------------------------
-
-[[HazelcastComponent-UsageofReplicatedmap]]
-Usage of Replicated map
-^^^^^^^^^^^^^^^^^^^^^^^
-
-*Avalaible from Camel 2.16*
-
-[[HazelcastComponent-replicatedmapcacheproducer]]
-replicatedmap cache producer
-++++++++++++++++++++++++++++
-
-A replicated map is a weakly consistent, distributed key-value data
-structure with no data partition. The replicatedmap producer provides 4
-operations (put, get, delete, clear).
-
-Header Variables for the request message:
-
-[width="100%",cols="10%,10%,80%",options="header",]
-|=======================================================================
-|Name |Type |Description
-
-|`CamelHazelcastOperationType` |`String` | valid values are: put, get, removevalue, delete
-
-|`CamelHazelcastObjectId` |`String` | the object id to store / find your object inside the cache
-|=======================================================================
-
-[[HazelcastComponent-Sampleforput:.3]]
-Sample for�*put*:
-
-Java DSL:
-
-[source,java]
-------------------------------------------------------------------------------------
-from("direct:put")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.PUT_OPERATION))
-.to(String.format("hazelcast:%sbar", HazelcastConstants.REPLICATEDMAP_PREFIX));
-------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
-    <from uri="direct:put" />
-    <log message="put.."/>
-        <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
-    <setHeader headerName="hazelcast.operation.type">
-        <constant>put</constant>
-    </setHeader>
-    <to uri="hazelcast:replicatedmap:foo" />
-</route>
------------------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Sampleforget:.4]]
-Sample for�*get*:
-
-Java DSL:
-
-[source,java]
-------------------------------------------------------------------------------------
-from("direct:get")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.GET_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.REPLICATEDMAP_PREFIX)
-.to("seda:out");
-------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
-    <from uri="direct:get" />
-    <log message="get.."/>
-        <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
-    <setHeader headerName="hazelcast.operation.type">
-        <constant>get</constant>
-    </setHeader>
-    <to uri="hazelcast:replicatedmap:foo" />
-    <to uri="seda:out" />
-</route>
------------------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Samplefordelete:.2]]
-Sample for�*delete*:
-
-Java DSL:
-
-[source,java]
----------------------------------------------------------------------------------------
-from("direct:delete")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.DELETE_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.REPLICATEDMAP_PREFIX);
----------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
-    <from uri="direct:delete" />
-    <log message="delete.."/>
-        <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
-    <setHeader headerName="hazelcast.operation.type">
-        <constant>delete</constant>
-    </setHeader>
-    <to uri="hazelcast:replicatedmap:foo" />
-</route>
------------------------------------------------------------------------------------------------
-
-you can call them in your test class with:
-
-[source,java]
-------------------------------------------------------------------------------------------------------------
-template.sendBodyAndHeader("direct:[put|get|delete|clear]", "my-foo", HazelcastConstants.OBJECT_ID, "4711");
-------------------------------------------------------------------------------------------------------------
-
-[[HazelcastComponent-replicatedmapcacheconsumer]]
-replicatedmap cache consumer
-++++++++++++++++++++++++++++
-
-For the multimap cache this component provides the same listeners /
-variables as for the map cache consumer (except the update and enviction
-listener). The only difference is the�*multimap*�prefix inside the URI.
-Here is a sample:
-
-[source,java]
---------------------------------------------------------------------------------------------------
-fromF("hazelcast:%sbar", HazelcastConstants.MULTIMAP_PREFIX)
-.log("object...")
-.choice()
-    .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ADDED))
-        .log("...added")
-                .to("mock:added")
-        //.when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.ENVICTED))
-        //        .log("...envicted")
-        //        .to("mock:envicted")
-        .when(header(HazelcastConstants.LISTENER_ACTION).isEqualTo(HazelcastConstants.REMOVED))
-                .log("...removed")
-                .to("mock:removed")
-        .otherwise()
-                .log("fail!");
---------------------------------------------------------------------------------------------------
-
-Header Variables inside the response message:
-
-[width="100%",cols="10%,10%,80%",options="header",]
-|=======================================================================
-|Name |Type |Description
-
-|`CamelHazelcastListenerTime` |`Long` |time of the event in millis
-
-|`CamelHazelcastListenerType` |`String` |the map consumer sets here "cachelistener"
-
-|`CamelHazelcastListenerAction` |`String` |type of event - here *added* and *removed* (and soon *envicted*)
-
-|`CamelHazelcastObjectId` |`String` | the oid of the object
-
-|`CamelHazelcastCacheName` |`String` |the name of the cache - e.g. "foo"
-
-|`CamelHazelcastCacheType` |`String` |the type of the cache - here replicatedmap
-|=======================================================================
-
-[[HazelcastComponent-UsageofRingbuffer]]
-Usage of Ringbuffer
-^^^^^^^^^^^^^^^^^^^
-
-*Avalaible from Camel 2.16*
-
-[[HazelcastComponent-ringbuffercacheproducer]]
-ringbuffer cache producer 
-+++++++++++++++++++++++++
-
-Ringbuffer is a distributed data structure where the data is stored in a
-ring-like structure. You can think of it as a circular array with a
-certain capacity.�The ringbuffer producer provides 5 operations (add,
-readonceHead, readonceTail, remainingCapacity, capacity).
-
-Header Variables for the request message:
-
-[width="100%",cols="10%,10%,80%",options="header",]
-|=======================================================================
-|Name |Type |Description
-
-|`CamelHazelcastOperationType` |`String` |valid values are: put, get, removevalue, delete
-
-|`CamelHazelcastObjectId` |`String` |the object id to store / find your object inside the cache
-|=======================================================================
-
-[[HazelcastComponent-Sampleforput:.4]]
-Sample for�*put*:
-
-Java DSL:
-
-[source,java]
-------------------------------------------------------------------------------------
-from("direct:put")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.ADD_OPERATION))
-.to(String.format("hazelcast:%sbar", HazelcastConstants.RINGBUFFER_PREFIX));
-------------------------------------------------------------------------------------
-
-Spring DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-<route>
-    <from uri="direct:put" />
-    <log message="put.."/>
-        <!-- If using version 2.8 and above set headerName to "CamelHazelcastOperationType" -->
-    <setHeader headerName="hazelcast.operation.type">
-        <constant>add</constant>
-    </setHeader>
-    <to uri="hazelcast:ringbuffer:foo" />
-</route>
------------------------------------------------------------------------------------------------
-
-[[HazelcastComponent-Sampleforreadoncefromhead:]]
-Sample for�*readonce from head*:
-
-Java DSL:
-
-[source,java]
------------------------------------------------------------------------------------------------
-from("direct:get")
-.setHeader(HazelcastConstants.OPERATION, constant(HazelcastConstants.READ_ONCE_HEAD_OPERATION))
-.toF("hazelcast:%sbar", HazelcastConstants.RINGBUFFER_PREFIX)
-.to("seda:out");
------------------------------------------------------------------------------------------------

http://git-wip-us.apache.org/repos/asf/camel/blob/9c0b7baf/components/camel-hbase/src/main/docs/hbase-component.adoc
----------------------------------------------------------------------
diff --git a/components/camel-hbase/src/main/docs/hbase-component.adoc b/components/camel-hbase/src/main/docs/hbase-component.adoc
new file mode 100644
index 0000000..7dd398c
--- /dev/null
+++ b/components/camel-hbase/src/main/docs/hbase-component.adoc
@@ -0,0 +1,519 @@
+[[hbase-HBaseComponent]]
+HBase Component
+~~~~~~~~~~~~~~~
+
+*Available as of Camel 2.10*
+
+This component provides an idemptotent repository, producers and
+consumers for http://hbase.apache.org/[Apache HBase].
+
+Maven users will need to add the following dependency to their `pom.xml`
+for this component:
+
+[source,xml]
+------------------------------------------------------------
+<dependency>
+    <groupId>org.apache.camel</groupId>
+    <artifactId>camel-hbase</artifactId>
+    <version>x.x.x</version>
+    <!-- use the same version as your Camel core version -->
+</dependency>
+------------------------------------------------------------
+
+[[hbase-ApacheHBaseOverview]]
+Apache HBase Overview
+^^^^^^^^^^^^^^^^^^^^^
+
+HBase is an open-source, distributed, versioned, column-oriented store
+modeled after Google's Bigtable: A Distributed Storage System for
+Structured Data. You can use HBase when you need random, realtime
+read/write access to your Big Data. More information at
+http://hbase.apache.org[Apache HBase].
+
+[[hbase-CamelandHBase]]
+Camel and HBase
+^^^^^^^^^^^^^^^
+
+When using a datasotre inside a camel route, there is always the
+chalenge of specifying how the camel message will stored to the
+datastore. In document based stores things are more easy as the message
+body can be directly mapped to a document. In relational databases an
+ORM solution can be used to map properties to columns etc. In column
+based stores things are more challenging as there is no standard way to
+perform that kind of mapping.
+
+HBase adds two additional challenges:
+
+* HBase groups columns into families, so just mapping a property to a
+column using a name convention is just not enough.
+* HBase doesn't have the notion of type, which means that it stores
+everything as byte[] and doesn't know if the byte[] represents a String,
+a Number, a serialized Java object or just binary data.
+
+To overcome these challenges, camel-hbase makes use of the message
+headers to specify the mapping of the message to HBase columns. It also
+provides the ability to use some camel-hbase provided classes that model
+HBase data and can be easily convert to and from xml/json etc. +
+ Finally it provides the ability to the user to implement and use his
+own mapping strategy.
+
+Regardless of the mapping strategy camel-hbase will convert a message
+into an org.apache.camel.component.hbase.model.HBaseData object and use
+that object for its internal operations.
+
+[[hbase-Configuringthecomponent]]
+Configuring the component
+^^^^^^^^^^^^^^^^^^^^^^^^^
+
+The HBase component can be provided a custom HBaseConfiguration object
+as a property or it can create an HBase configuration object on its own
+based on the HBase related resources that are found on classpath.
+
+[source,xml]
+-----------------------------------------------------------------------------
+    <bean id="hbase" class="org.apache.camel.component.hbase.HBaseComponent">
+        <property name="configuration" ref="config"/>
+    </bean>
+-----------------------------------------------------------------------------
+
+If no configuration object is provided to the component, the component
+will create one. The created configuration will search the class path
+for an hbase-site.xml file, from which it will draw the configuration.
+You can find more information about how to configure HBase clients at:
+http://archive.apache.org/dist/hbase/docs/client_dependencies.html[HBase
+client configuration and dependencies]
+
+[[hbase-HBaseProducer]]
+HBase Producer
+^^^^^^^^^^^^^^
+
+As mentioned above camel provides produers endpoints for HBase. This
+allows you to store, delete, retrieve or query data from HBase using
+your camel routes.
+
+[source,java]
+-----------------------
+hbase://table[?options]
+-----------------------
+
+where *table* is the table name.
+
+The supported operations are:
+
+* Put
+* Get
+* Delete
+* Scan
+
+[[hbase-SupportedURIoptions]]
+Supported URI options
++++++++++++++++++++++
+
+
+
+// component options: START
+The HBase component supports 2 options which are listed below.
+
+
+
+{% raw %}
+[width="100%",cols="2s,1m,8",options="header"]
+|=======================================================================
+| Name | Java Type | Description
+| configuration | Configuration | To use the shared configuration
+| poolMaxSize | int | Maximum number of references to keep for each table in the HTable pool. The default value is 10.
+|=======================================================================
+{% endraw %}
+// component options: END
+
+
+
+
+
+// endpoint options: START
+The HBase component supports 17 endpoint options which are listed below:
+
+{% raw %}
+[width="100%",cols="2s,1,1m,1m,5",options="header"]
+|=======================================================================
+| Name | Group | Default | Java Type | Description
+| tableName | common |  | String | *Required* The name of the table
+| cellMappingStrategyFactory | common |  | CellMappingStrategyFactory | To use a custom CellMappingStrategyFactory that is responsible for mapping cells.
+| filters | common |  | List | A list of filters to use.
+| mappingStrategyClassName | common |  | String | The class name of a custom mapping strategy implementation.
+| mappingStrategyName | common |  | String | The strategy to use for mapping Camel messages to HBase columns. Supported values: header or body.
+| rowMapping | common |  | Map | To map the key/values from the Map to a HBaseRow. The following keys is supported: rowId - The id of the row. This has limited use as the row usually changes per Exchange. rowType - The type to covert row id to. Supported operations: CamelHBaseScan. family - The column family. Supports a number suffix for referring to more than one columns. qualifier - The column qualifier. Supports a number suffix for referring to more than one columns. value - The value. Supports a number suffix for referring to more than one columns valueType - The value type. Supports a number suffix for referring to more than one columns. Supported operations: CamelHBaseGet and CamelHBaseScan.
+| rowModel | common |  | HBaseRow | An instance of org.apache.camel.component.hbase.model.HBaseRow which describes how each row should be modeled
+| userGroupInformation | common |  | UserGroupInformation | Defines privileges to communicate with HBase such as using kerberos.
+| bridgeErrorHandler | consumer | false | boolean | Allows for bridging the consumer to the Camel routing Error Handler which mean any exceptions occurred while the consumer is trying to pickup incoming messages or the likes will now be processed as a message and handled by the routing Error Handler. By default the consumer will use the org.apache.camel.spi.ExceptionHandler to deal with exceptions that will be logged at WARN/ERROR level and ignored.
+| maxMessagesPerPoll | consumer |  | int | Gets the maximum number of messages as a limit to poll at each polling. Is default unlimited but use 0 or negative number to disable it as unlimited.
+| operation | consumer |  | String | The HBase operation to perform
+| remove | consumer | true | boolean | If the option is true Camel HBase Consumer will remove the rows which it processes.
+| removeHandler | consumer |  | HBaseRemoveHandler | To use a custom HBaseRemoveHandler that is executed when a row is to be removed.
+| exceptionHandler | consumer (advanced) |  | ExceptionHandler | To let the consumer use a custom ExceptionHandler. Notice if the option bridgeErrorHandler is enabled then this options is not in use. By default the consumer will deal with exceptions that will be logged at WARN/ERROR level and ignored.
+| maxResults | producer | 100 | int | The maximum number of rows to scan.
+| exchangePattern | advanced | InOnly | ExchangePattern | Sets the default exchange pattern when creating an exchange
+| synchronous | advanced | false | boolean | Sets whether synchronous processing should be strictly used or Camel is allowed to use asynchronous processing (if supported).
+|=======================================================================
+{% endraw %}
+// endpoint options: END
+
+
+
+[[hbase-PutOperations.]]
+Put Operations.
++++++++++++++++
+
+HBase is a column based store, which allows you to store data into a
+specific column of a specific row. Columns are grouped into families, so
+in order to specify a column you need to specify the column family and
+the qualifier of that column. To store data into a specific column you
+need to specify both the column and the row.
+
+The simplest scenario for storing data into HBase from a camel route,
+would be to store part of the message body to specified HBase column.
+
+[source,xml]
+-----------------------------------------------------------------------------------------------------------
+        <route>
+            <from uri="direct:in"/>
+            <!-- Set the HBase Row -->
+            <setHeader headerName="CamelHBaseRowId">
+                <el>${in.body.id}</el>
+            </setHeader>
+            <!-- Set the HBase Value -->
+            <setHeader headerName="CamelHBaseValue">
+                <el>${in.body.value}</el>
+            </setHeader>
+            <to uri="hbase:mytable?operation=CamelHBasePut&amp;family=myfamily&amp;qualifier=myqualifier"/>
+        </route>
+-----------------------------------------------------------------------------------------------------------
+
+The route above assumes that the message body contains an object that
+has an id and value property and will store the content of value in the
+HBase column myfamily:myqualifier in the row specified by id. If we
+needed to specify more than one column/value pairs we could just specify
+additional column mappings. Notice that you must use numbers from the
+2nd header onwards, eg RowId2, RowId3, RowId4, etc. Only the 1st header
+does not have the number 1.
+
+[source,xml]
+------------------------------------------------------------------------------------------------------------------------------------------------------------
+        <route>
+            <from uri="direct:in"/>
+            <!-- Set the HBase Row 1st column -->
+            <setHeader headerName="CamelHBaseRowId">
+                <el>${in.body.id}</el>
+            </setHeader>
+            <!-- Set the HBase Row 2nd column -->
+            <setHeader headerName="CamelHBaseRowId2">
+                <el>${in.body.id}</el>
+            </setHeader>
+            <!-- Set the HBase Value for 1st column -->
+            <setHeader headerName="CamelHBaseValue">
+                <el>${in.body.value}</el>
+            </setHeader>
+            <!-- Set the HBase Value for 2nd column -->
+            <setHeader headerName="CamelHBaseValue2">
+                <el>${in.body.othervalue}</el>
+            </setHeader>
+            <to uri="hbase:mytable?operation=CamelHBasePut&amp;family=myfamily&amp;qualifier=myqualifier&amp;family2=myfamily&amp;qualifier2=myqualifier2"/>
+        </route>
+------------------------------------------------------------------------------------------------------------------------------------------------------------
+
+It is important to remember that you can use uri options, message
+headers or a combination of both. It is recommended to specify constants
+as part of the uri and dynamic values as headers. If something is
+defined both as header and as part of the uri, the header will be used.
+
+[[hbase-GetOperations.]]
+Get Operations.
++++++++++++++++
+
+A Get Operation is an operation that is used to retrieve one or more
+values from a specified HBase row. To specify what are the values that
+you want to retrieve you can just specify them as part of the uri or as
+message headers.
+
+[source,xml]
+----------------------------------------------------------------------------------------------------------------------------------------
+        <route>
+            <from uri="direct:in"/>
+            <!-- Set the HBase Row of the Get -->
+            <setHeader headerName="CamelHBaseRowId">
+                <el>${in.body.id}</el>
+            </setHeader>
+            <to uri="hbase:mytable?operation=CamelHBaseGet&amp;family=myfamily&amp;qualifier=myqualifier&amp;valueType=java.lang.Long"/>
+            <to uri="log:out"/>
+        </route>
+----------------------------------------------------------------------------------------------------------------------------------------
+
+In the example above the result of the get operation will be stored as a
+header with name CamelHBaseValue.
+
+[[hbase-DeleteOperations.]]
+Delete Operations.
+++++++++++++++++++
+
+You can also you camel-hbase to perform HBase delete operation. The
+delete operation will remove an entire row. All that needs to be
+specified is one or more rows as part of the message headers.
+
+[source,xml]
+----------------------------------------------------------------
+        <route>
+            <from uri="direct:in"/>
+            <!-- Set the HBase Row of the Get -->
+            <setHeader headerName="CamelHBaseRowId">
+                <el>${in.body.id}</el>
+            </setHeader>
+            <to uri="hbase:mytable?operation=CamelHBaseDelete"/>
+        </route>
+----------------------------------------------------------------
+
+[[hbase-ScanOperations.]]
+Scan Operations.
+++++++++++++++++
+
+A scan operation is the equivalent of a query in HBase. You can use the
+scan operation to retrieve multiple rows. To specify what columns should
+be part of the result and also specify how the values will be converted
+to objects you can use either uri options or headers.
+
+[source,xml]
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------
+        <route>
+            <from uri="direct:in"/>
+            <to uri="hbase:mytable?operation=CamelHBaseScan&amp;family=myfamily&amp;qualifier=myqualifier&amp;valueType=java.lang.Long&amp;rowType=java.lang.String"/>
+            <to uri="log:out"/>
+        </route>
+----------------------------------------------------------------------------------------------------------------------------------------------------------------------
+
+In this case its probable that you also also need to specify a list of
+filters for limiting the results. You can specify a list of filters as
+part of the uri and camel will return only the rows that satisfy *ALL*
+the filters.  +
+ To have a filter that will be aware of the information that is part of
+the message, camel defines the ModelAwareFilter. This will allow your
+filter to take into consideration the model that is defined by the
+message and the mapping strategy. +
+ When using a ModelAwareFilter camel-hbase will apply the selected
+mapping strategy to the in message, will create an object that models
+the mapping and will pass that object to the Filter.
+
+For example to perform scan using as criteria the message headers, you
+can make use of the ModelAwareColumnMatchingFilter as shown below.
+
+[source,xml]
+-----------------------------------------------------------------------------------------------------------
+        <route>
+            <from uri="direct:scan"/>
+            <!-- Set the Criteria -->
+            <setHeader headerName="CamelHBaseFamily">
+                <constant>name</constant>
+            </setHeader>
+            <setHeader headerName="CamelHBaseQualifier">
+                <constant>first</constant>
+            </setHeader>
+            <setHeader headerName="CamelHBaseValue">
+                <el>in.body.firstName</el>
+            </setHeader>
+            <setHeader headerName="CamelHBaseFamily2">
+                <constant>name</constant>
+            </setHeader>
+            <setHeader headerName="CamelHBaseQualifier2">
+                <constant>last</constant>
+            </setHeader>
+            <setHeader headerName="CamelHBaseValue2">
+                <el>in.body.lastName</el>
+            </setHeader>
+            <!-- Set additional fields that you want to be return by skipping value -->
+            <setHeader headerName="CamelHBaseFamily3">
+                <constant>address</constant>
+            </setHeader>
+            <setHeader headerName="CamelHBaseQualifier3">
+                <constant>country</constant>
+            </setHeader>
+            <to uri="hbase:mytable?operation=CamelHBaseScan&amp;filters=#myFilterList"/>
+        </route>
+
+        <bean id="myFilters" class="java.util.ArrayList">
+            <constructor-arg>
+                <list>
+                    <bean class="org.apache.camel.component.hbase.filters.ModelAwareColumnMatchingFilter"/>
+                </list>
+            </constructor-arg>
+        </bean>
+-----------------------------------------------------------------------------------------------------------
+
+The route above assumes that a pojo is with properties firstName and
+lastName is passed as the message body, it takes those properties and
+adds them as part of the message headers. The default mapping strategy
+will create a model object that will map the headers to HBase columns
+and will pass that model the the ModelAwareColumnMatchingFilter. The
+filter will filter out any rows, that do not contain columns that match
+the model. It is like query by example.
+
+[[hbase-HBaseConsumer]]
+HBase Consumer
+^^^^^^^^^^^^^^
+
+The Camel HBase Consumer, will perform repeated scan on the specified
+HBase table and will return the scan results as part of the message. You
+can either specify header mapping (default) or body mapping. The later
+will just add the org.apache.camel.component.hbase.model.HBaseData as
+part of the message body.
+
+[source,java]
+-----------------------
+hbase://table[?options]
+-----------------------
+
+You can specify the columns that you want to be return and their types
+as part of the uri options:
+
+[source,java]
+------------------------------------------------------------------------------------------------------------------------------------------------------
+hbase:mutable?family=name&qualifer=first&valueType=java.lang.String&family=address&qualifer=number&valueType2=java.lang.Integer&rowType=java.lang.Long
+------------------------------------------------------------------------------------------------------------------------------------------------------
+
+The example above will create a model object that is consisted of the
+specified fields and the scan results will populate the model object
+with values. Finally the mapping strategy will be used to map this model
+to the camel message.
+
+[[hbase-HBaseIdempotentrepository]]
+HBase Idempotent repository
+^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+The camel-hbase component also provides an idempotent repository which
+can be used when you want to make sure that each message is processed
+only once. The HBase idempotent repository is configured with a table, a
+column family and a column qualifier and will create to that table a row
+per message.
+
+[source,java]
+------------------------------------------------------------------------------------------------------------------
+HBaseConfiguration configuration = HBaseConfiguration.create();
+HBaseIdempotentRepository repository = new HBaseIdempotentRepository(configuration, tableName, family, qualifier);
+
+from("direct:in")
+  .idempotentConsumer(header("messageId"), repository)
+  .to("log:out);
+------------------------------------------------------------------------------------------------------------------
+
+[[hbase-HBaseMapping]]
+HBase Mapping
+^^^^^^^^^^^^^
+
+It was mentioned above that you the default mapping strategies are
+*header* and *body* mapping. +
+ Below you can find some detailed examples of how each mapping strategy
+works.
+
+[[hbase-HBaseHeadermappingExamples]]
+HBase Header mapping Examples
++++++++++++++++++++++++++++++
+
+The header mapping is the default mapping. 
+ To put the value "myvalue" into HBase row "myrow" and column
+"myfamily:mycolum" the message should contain the following headers:
+
+[width="100%",cols="10%,90%",options="header",]
+|=======================================================================
+|Header |Value
+
+|CamelHBaseRowId |myrow
+
+|CamelHBaseFamily |myfamily
+
+|CamelHBaseQualifier |myqualifier
+
+|CamelHBaseValue |myvalue
+|=======================================================================
+
+To put more values for different columns and / or different rows you can
+specify additional headers suffixed with the index of the headers, e.g:
+
+[width="100%",cols="10%,90%",options="header",]
+|=======================================================================
+|Header |Value
+
+|CamelHBaseRowId |myrow
+
+|CamelHBaseFamily |myfamily
+
+|CamelHBaseQualifier |myqualifier
+
+|CamelHBaseValue |myvalue
+
+|CamelHBaseRowId2 |myrow2
+
+|CamelHBaseFamily2 |myfamily
+
+|CamelHBaseQualifier2 |myqualifier
+
+|CamelHBaseValue2 |myvalue2
+|=======================================================================
+
+In the case of retrieval operations such as get or scan you can also
+specify for each column the type that you want the data to be converted
+to. For exampe:
+
+[width="100%",cols="10%,90%",options="header",]
+|=======================================================================
+|Header |Value
+
+|CamelHBaseFamily |myfamily
+
+|CamelHBaseQualifier |myqualifier
+
+|CamelHBaseValueType |Long
+|=======================================================================
+
+Please note that in order to avoid boilerplate headers that are
+considered constant for all messages, you can also specify them as part
+of the endpoint uri, as you will see below.
+
+[[hbase-BodymappingExamples]]
+Body mapping Examples
++++++++++++++++++++++
+
+In order to use the body mapping strategy you will have to specify the
+option mappingStrategy as part of the uri, for example:
+
+[source,java]
+----------------------------------
+hbase:mytable?mappingStrategyName=body
+----------------------------------
+
+To use the body mapping strategy the body needs to contain an instance
+of org.apache.camel.component.hbase.model.HBaseData. You can construct t
+
+[source,java]
+---------------------------------
+HBaseData data = new HBaseData();
+HBaseRow row = new HBaseRow();
+row.setId("myRowId");
+HBaseCell cell = new HBaseCell();
+cell.setFamily("myfamily");
+cell.setQualifier("myqualifier");
+cell.setValue("myValue");
+row.getCells().add(cell);
+data.addRows().add(row);
+---------------------------------
+
+The object above can be used for example in a put operation and will
+result in creating or updating the row with id myRowId and add the value
+myvalue to the column myfamily:myqualifier. +
+ The body mapping strategy might not seem very appealing at first. The
+advantage it has over the header mapping strategy is that the HBaseData
+object can be easily converted to or from xml/json.
+
+[[hbase-Seealso]]
+See also
+^^^^^^^^
+
+* link:polling-consumer.html[Polling Consumer]
+* http://hbase.apache.org[Apache HBase]
+