ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yzhda...@apache.org
Subject [24/27] incubator-ignite git commit: ignite-105 review
Date Wed, 21 Jan 2015 17:30:46 GMT
ignite-105 review


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

Branch: refs/heads/ignite-53
Commit: 64fb77bb3f4f68ce0ba49df28babdc2bd0a92488
Parents: f10f5db
Author: Yakov Zhdanov <yzhdanov@gridgain.com>
Authored: Wed Jan 21 19:17:03 2015 +0300
Committer: Yakov Zhdanov <yzhdanov@gridgain.com>
Committed: Wed Jan 21 19:17:03 2015 +0300

----------------------------------------------------------------------
 .../org/gridgain/grid/cache/GridCacheConfiguration.java   | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/64fb77bb/modules/core/src/main/java/org/gridgain/grid/cache/GridCacheConfiguration.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/gridgain/grid/cache/GridCacheConfiguration.java
b/modules/core/src/main/java/org/gridgain/grid/cache/GridCacheConfiguration.java
index 8cd961d..007e592 100644
--- a/modules/core/src/main/java/org/gridgain/grid/cache/GridCacheConfiguration.java
+++ b/modules/core/src/main/java/org/gridgain/grid/cache/GridCacheConfiguration.java
@@ -404,6 +404,7 @@ public class GridCacheConfiguration extends MutableConfiguration {
         preloadThrottle = cc.getPreloadThrottle();
         qryCfg = cc.getQueryConfiguration();
         qryIdxEnabled = cc.isQueryIndexEnabled();
+        readFromBackup = cc.isReadFromBackup();
         seqReserveSize = cc.getAtomicSequenceReserveSize();
         startSize = cc.getStartSize();
         store = cc.getStore();
@@ -417,7 +418,6 @@ public class GridCacheConfiguration extends MutableConfiguration {
         writeBehindFlushSize = cc.getWriteBehindFlushSize();
         writeBehindFlushThreadCnt = cc.getWriteBehindFlushThreadCount();
         writeSync = cc.getWriteSynchronizationMode();
-        readFromBackup = cc.isReadFromBackup();
     }
 
     /**
@@ -1724,10 +1724,11 @@ public class GridCacheConfiguration extends MutableConfiguration {
     /**
      * Gets flag indicating whether data can be read from backup.
      * If {@code false} always get data from primary node (never from backup).
+     * <p>
      * Default value is defined by {@link #DFLT_READ_FROM_BACKUP}.
      *
-     * @return {@code true} if data can be read from backup node. {@code false} if data always
get from primary node
-     * (never from backup).
+     * @return {@code true} if data can be read from backup node or {@code false} if data
always
+     *      should be read from primary node and never from backup.
      */
     public boolean isReadFromBackup() {
         return readFromBackup;
@@ -1735,7 +1736,8 @@ public class GridCacheConfiguration extends MutableConfiguration {
 
     /**
      * Sets read from backup flag.
-     * @param readFromBackup Value of read from backup flag.
+     *
+     * @param readFromBackup {@code true} to allow reads from backups.
      */
     public void setReadFromBackup(boolean readFromBackup) {
         this.readFromBackup = readFromBackup;


Mime
View raw message