ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akuznet...@apache.org
Subject ignite git commit: IGNITE-843 Added keepBinary to cache configuration.
Date Tue, 01 Dec 2015 07:57:33 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-843-rc1 1d9d888cd -> 95730f9ee


IGNITE-843 Added keepBinary to cache configuration.


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

Branch: refs/heads/ignite-843-rc1
Commit: 95730f9ee8b2cfda0d4d43eeae5d5823b986b2de
Parents: 1d9d888
Author: Alexey Kuznetsov <akuznetsov@apache.org>
Authored: Tue Dec 1 14:58:09 2015 +0700
Committer: Alexey Kuznetsov <akuznetsov@apache.org>
Committed: Tue Dec 1 14:58:09 2015 +0700

----------------------------------------------------------------------
 .../src/main/js/controllers/models/caches.json            | 10 ++++++++++
 modules/control-center-web/src/main/js/db.js              |  1 +
 .../src/main/js/helpers/generator/generator-java.js       |  7 ++++---
 .../src/main/js/helpers/generator/generator-xml.js        |  7 ++++---
 4 files changed, 19 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/95730f9e/modules/control-center-web/src/main/js/controllers/models/caches.json
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/controllers/models/caches.json b/modules/control-center-web/src/main/js/controllers/models/caches.json
index bf3e81e..a60735a 100644
--- a/modules/control-center-web/src/main/js/controllers/models/caches.json
+++ b/modules/control-center-web/src/main/js/controllers/models/caches.json
@@ -576,6 +576,16 @@
           }
         },
         {
+          "label": "Keep binary in store",
+          "id": "keepBinaryInStore",
+          "type": "check",
+          "model": "keepBinaryInStore",
+          "placeholder": true,
+          "tip": [
+            "Flag indicating that CacheStore implementation is working with binary objects
instead of Java objects"
+          ]
+        },
+        {
           "label": "Load previous value",
           "id": "loadPreviousValue",
           "type": "check",

http://git-wip-us.apache.org/repos/asf/ignite/blob/95730f9e/modules/control-center-web/src/main/js/db.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/db.js b/modules/control-center-web/src/main/js/db.js
index 51fedef..f26f418 100644
--- a/modules/control-center-web/src/main/js/db.js
+++ b/modules/control-center-web/src/main/js/db.js
@@ -157,6 +157,7 @@ var CacheSchema = new Schema({
             hibernateProperties: [String]
         }
     },
+    keepBinaryInStore: Boolean,
     loadPreviousValue: Boolean,
     readThrough: Boolean,
     writeThrough: Boolean,

http://git-wip-us.apache.org/repos/asf/ignite/blob/95730f9e/modules/control-center-web/src/main/js/helpers/generator/generator-java.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/helpers/generator/generator-java.js b/modules/control-center-web/src/main/js/helpers/generator/generator-java.js
index b9fb376..1ea01ae 100644
--- a/modules/control-center-web/src/main/js/helpers/generator/generator-java.js
+++ b/modules/control-center-web/src/main/js/helpers/generator/generator-java.js
@@ -965,9 +965,10 @@ $generatorJava.cacheStore = function (cache, metadatas, cacheVarName,
res) {
         res.needEmptyLine = true;
     }
 
-    $generatorJava.property(res, cacheVarName, cache, 'loadPreviousValue');
-    $generatorJava.property(res, cacheVarName, cache, 'readThrough');
-    $generatorJava.property(res, cacheVarName, cache, 'writeThrough');
+    $generatorJava.property(res, cacheVarName, cache, 'keepBinaryInStore', null, null, false);
+    $generatorJava.property(res, cacheVarName, cache, 'loadPreviousValue', null, null, false);
+    $generatorJava.property(res, cacheVarName, cache, 'readThrough', null, null, false);
+    $generatorJava.property(res, cacheVarName, cache, 'writeThrough', null, null, false);
 
     res.needEmptyLine = true;
 

http://git-wip-us.apache.org/repos/asf/ignite/blob/95730f9e/modules/control-center-web/src/main/js/helpers/generator/generator-xml.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/helpers/generator/generator-xml.js b/modules/control-center-web/src/main/js/helpers/generator/generator-xml.js
index f01506a..55cf397 100644
--- a/modules/control-center-web/src/main/js/helpers/generator/generator-xml.js
+++ b/modules/control-center-web/src/main/js/helpers/generator/generator-xml.js
@@ -792,9 +792,10 @@ $generatorXml.cacheStore = function(cache, metadatas, res) {
         }
     }
 
-    $generatorXml.property(res, cache, 'loadPreviousValue');
-    $generatorXml.property(res, cache, 'readThrough');
-    $generatorXml.property(res, cache, 'writeThrough');
+    $generatorXml.property(res, cache, 'keepBinaryInStore', null, false);
+    $generatorXml.property(res, cache, 'loadPreviousValue', null, false);
+    $generatorXml.property(res, cache, 'readThrough', null, null, false);
+    $generatorXml.property(res, cache, 'writeThrough', null, null, false);
 
     res.needEmptyLine = true;
 


Mime
View raw message