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 <[email protected]>
Authored: Mon Dec 21 18:25:25 2015 +0700
Committer: Alexey Kuznetsov <[email protected]>
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,

Reply via email to