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/12/21 12:26:29 UTC

[1/2] ignite git commit: IGNITE-843 WIP BinaryConfiguration.

Repository: ignite
Updated Branches:
  refs/heads/ignite-843-rc2 0dfdaeb35 -> 8b4175dda


IGNITE-843 WIP BinaryConfiguration.


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

Branch: refs/heads/ignite-843-rc2
Commit: 39b68d01d037fd391acb16399d911c55316265e4
Parents: 59a3dcef7
Author: Alexey Kuznetsov <ak...@apache.org>
Authored: Mon Dec 21 18:25:25 2015 +0700
Committer: Alexey Kuznetsov <ak...@apache.org>
Committed: Mon Dec 21 18:25:25 2015 +0700

----------------------------------------------------------------------
 .../main/js/controllers/models/clusters.json    | 53 ++++++++++++++++++++
 modules/control-center-web/src/main/js/db.js    |  6 +++
 2 files changed, 59 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/39b68d01/modules/control-center-web/src/main/js/controllers/models/clusters.json
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/controllers/models/clusters.json b/modules/control-center-web/src/main/js/controllers/models/clusters.json
index 9c5d0a5..da7b23b 100644
--- a/modules/control-center-web/src/main/js/controllers/models/clusters.json
+++ b/modules/control-center-web/src/main/js/controllers/models/clusters.json
@@ -397,6 +397,59 @@
       ]
     },
     {
+      "label": "Binary configuration",
+      "group": "atomics",
+      "tip": [
+        "Configuration for Ignite Binary Objects"
+      ],
+      "fields": [
+        {
+          "label": "ID mapper",
+          "id": "idMapper",
+          "type": "text",
+          "path": "binaryConfiguration",
+          "model": "idMapper",
+          "placeholder": "Enter fully qualified class name",
+          "tip": [
+            "Type and field ID mapper for binary objects",
+            "Ignite never writes full strings for field or type names. Instead, for performance reasons, Ignite writes integer hash codes for type and field names. It has been tested that hash code conflicts for the type names or the field names within the same type are virtually non-existent and, to gain performance, it is safe to work with hash codes. For the cases when hash codes for different types or fields actually do collide <b>BinaryIdMapper</b> allows to override the automatically generated hash code IDs for the type and field names"
+          ]
+        },
+        {
+          "label": "Serializer",
+          "id": "serializer",
+          "type": "text",
+          "path": "binaryConfiguration",
+          "model": "serializer",
+          "placeholder": "Enter fully qualified class name",
+          "tip": [
+            "Class with custom serialization logic for binary objects"
+          ]
+        },
+        {
+          "label": "Type configurations",
+          "id": "typeConfigurations",
+          "type": "text",
+          "path": "binaryConfiguration",
+          "model": "typeConfigurations",
+          "placeholder": "TODO table",
+          "tip": [
+            "Configuration properties for binary types"
+          ]
+        },
+        {
+          "label": "Compact footer",
+          "id": "compactFooter",
+          "type": "check",
+          "path": "binaryConfiguration",
+          "model": "compactFooter",
+          "tip": [
+            "When enabled, Ignite will not write fields metadata when serializing objects(this will increase serialization performance), because internally <b>BinaryMarshaller</b> already distribute metadata inside cluster"
+          ]
+        }
+      ]
+    },
+    {
       "label": "Communication",
       "group": "communication",
       "tip": [

http://git-wip-us.apache.org/repos/asf/ignite/blob/39b68d01/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 be1f59e..8d57cf8 100644
--- a/modules/control-center-web/src/main/js/db.js
+++ b/modules/control-center-web/src/main/js/db.js
@@ -331,6 +331,12 @@ var ClusterSchema = new Schema({
         cacheMode: {type: String, enum: ['LOCAL', 'REPLICATED', 'PARTITIONED']},
         atomicSequenceReserveSize: Number
     },
+    binaryConfiguration: {
+        idMapper: String,
+        serializer: String,
+        typeConfigurations: [{typeName: String, idMapper: String, serializer: String, enum: Boolean}],
+        compactFooter: Boolean
+    },
     caches: [{type: ObjectId, ref: 'Cache'}],
     clockSyncSamples: Number,
     clockSyncFrequency: Number,


[2/2] ignite git commit: Merge remote-tracking branch 'origin/ignite-843-rc2' into ignite-843-rc2

Posted by ak...@apache.org.
Merge remote-tracking branch 'origin/ignite-843-rc2' into ignite-843-rc2


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

Branch: refs/heads/ignite-843-rc2
Commit: 8b4175ddafc304b0c14cd122337d28a2be73c516
Parents: 39b68d0 0dfdaeb
Author: Alexey Kuznetsov <ak...@apache.org>
Authored: Mon Dec 21 18:25:59 2015 +0700
Committer: Alexey Kuznetsov <ak...@apache.org>
Committed: Mon Dec 21 18:25:59 2015 +0700

----------------------------------------------------------------------
 .../app/modules/states/configuration/index.js   |  20 +-
 .../src/main/js/app/modules/states/sql/index.js |   5 +-
 .../src/main/js/controllers/sql-controller.js   |   6 +-
 .../src/main/js/public/stylesheets/style.scss   |   7 +-
 .../src/main/js/views/sql/sql.jade              | 251 ++++++++++---------
 5 files changed, 154 insertions(+), 135 deletions(-)
----------------------------------------------------------------------