Repository: incubator-ignite
Updated Branches:
  refs/heads/sprint-1-release bd820cef2 -> bfd14e529


# sprint-1 Use atomic cache in queue example (with tx fails due to IGNITE-264)


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/82924b62
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/82924b62
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/82924b62

Branch: refs/heads/sprint-1-release
Commit: 82924b62eb16567ce7a35f37c4486b931ee3beb8
Parents: 5926470
Author: sboikov <sboi...@gridgain.com>
Authored: Mon Feb 16 17:42:54 2015 +0300
Committer: sboikov <sboi...@gridgain.com>
Committed: Mon Feb 16 17:42:54 2015 +0300

----------------------------------------------------------------------
 examples/config/example-cache.xml                         | 10 ++++++++++
 .../examples/datastructures/IgniteQueueExample.java       |  2 +-
 2 files changed, 11 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/82924b62/examples/config/example-cache.xml
----------------------------------------------------------------------
diff --git a/examples/config/example-cache.xml 
b/examples/config/example-cache.xml
index ad8d5e8..2ccecf9 100644
--- a/examples/config/example-cache.xml
+++ b/examples/config/example-cache.xml
@@ -62,6 +62,16 @@
                     <property name="backups" value="1"/>
                 </bean>
 
+                <!-- Partitioned cache example configuration (Atomic mode, 
PRIMARY write order mode). -->
+                <bean parent="cache-template">
+                    <property name="name" value="partitioned_primary"/>
+                    <property name="cacheMode" value="PARTITIONED"/>
+                    <property name="atomicityMode" value="ATOMIC"/>
+                    <property name="atomicWriteOrderMode" value="PRIMARY"/>
+                    <property name="distributionMode" 
value="PARTITIONED_ONLY"/>
+                    <property name="backups" value="1"/>
+                </bean>
+
                 <!-- Partitioned cache example configuration (Transactional 
mode). -->
                 <bean parent="cache-template">
                     <property name="name" value="partitioned_tx"/>

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/82924b62/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteQueueExample.java
----------------------------------------------------------------------
diff --git 
a/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteQueueExample.java
 
b/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteQueueExample.java
index 519d11a..8f915f9 100644
--- 
a/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteQueueExample.java
+++ 
b/examples/src/main/java/org/apache/ignite/examples/datastructures/IgniteQueueExample.java
@@ -36,7 +36,7 @@ import java.util.*;
  */
 public class IgniteQueueExample {
     /** Cache name. */
-    private static final String CACHE_NAME = "partitioned_tx";
+    private static final String CACHE_NAME = "partitioned_primary";
 
     /** Number of retries */
     private static final int RETRIES = 20;

Reply via email to