You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ak...@apache.org on 2015/06/22 18:54:24 UTC

incubator-ignite git commit: IGNITE-843: WIP on cache store.

Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-843 de85e699f -> 7272f5a89


IGNITE-843: WIP on cache store.


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

Branch: refs/heads/ignite-843
Commit: 7272f5a89799976ae0eab3cbd958b2aa4e79dd51
Parents: de85e69
Author: AKuznetsov <ak...@gridgain.com>
Authored: Mon Jun 22 23:54:19 2015 +0700
Committer: AKuznetsov <ak...@gridgain.com>
Committed: Mon Jun 22 23:54:19 2015 +0700

----------------------------------------------------------------------
 .../nodejs/public/form-models/caches.json       | 50 ++++++++++++++++++++
 .../public/javascripts/controllers/caches.js    |  6 +++
 2 files changed, 56 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/7272f5a8/modules/webconfig/nodejs/public/form-models/caches.json
----------------------------------------------------------------------
diff --git a/modules/webconfig/nodejs/public/form-models/caches.json b/modules/webconfig/nodejs/public/form-models/caches.json
index 3190d24..827817d 100644
--- a/modules/webconfig/nodejs/public/form-models/caches.json
+++ b/modules/webconfig/nodejs/public/form-models/caches.json
@@ -317,6 +317,56 @@
       "label": "Store",
       "fields": [
         {
+          "label": "Store factory",
+          "type": "dropdown-details",
+          "group": "cacheStoreFactory",
+          "model": "kind",
+          "placeholder": "Choose store factory",
+          "items": "cacheStoreFactories",
+          "tip": [
+            "Factory for persistent storage for cache data."
+          ],
+          "details": {
+            "CacheJdbcPojoStoreFactory": {
+              "expanded": true,
+              "fields": [
+                {
+                  "label": "Data source bean",
+                  "type": "text",
+                  "model": "dataSourceBean",
+                  "required": true,
+                  "placeholder": "Data surce bean"
+                },
+                {
+                  "label": "Dialect",
+                  "type": "dropdown",
+                  "model": "dialect",
+                  "placeholder": "Choose JDBC dialect",
+                  "items": "dialects",
+                  "tip": [
+                    "Dialect of SQL implemented by a particular RDBMS:",
+                    "<ul>",
+                    "  <li>Generic JDBC dialect.</li>",
+                    "  <li>Oracle.</li>",
+                    "  <li>IBM DB2.</li>",
+                    "  <li>My SQL.</li>",
+                    "  <li>H2 database.</li>",
+                    "</ul>"
+                  ]
+                }
+              ]
+            },
+            "CacheJdbcBlobStoreFactory": {
+              "expanded": true,
+              "fields": []
+            },
+            "CacheHibernateBlobStoreFactory": {
+              "expanded": true,
+              "fields": []
+            }
+          }
+        },
+        {
           "label": "Read-through",
           "type": "check",
           "model": "readThrough",

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/7272f5a8/modules/webconfig/nodejs/public/javascripts/controllers/caches.js
----------------------------------------------------------------------
diff --git a/modules/webconfig/nodejs/public/javascripts/controllers/caches.js b/modules/webconfig/nodejs/public/javascripts/controllers/caches.js
index 9384d18..b5a1108 100644
--- a/modules/webconfig/nodejs/public/javascripts/controllers/caches.js
+++ b/modules/webconfig/nodejs/public/javascripts/controllers/caches.js
@@ -57,6 +57,12 @@ configuratorModule.controller('cachesController', ['$scope', '$alert', '$http',
             {value: 'NONE', label: 'NONE'}
         ];
 
+        $scope.cacheStoreFactories = [
+            {value: 'CacheJdbcPojoStoreFactory', label: 'JDBC POJO store factory'},
+            {value: 'CacheJdbcBlobStoreFactory', label: 'JDBC BLOB store factory'},
+            {value: 'CacheHibernateBlobStoreFactory', label: 'Hibernate BLOB store factory'}
+        ];
+
         $scope.general = [];
         $scope.advanced = [];