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 WIP preview.
Date Mon, 24 Aug 2015 16:50:29 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-843 f15f8bd8c -> 0fce437c9


IGNITE-843 WIP preview.


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

Branch: refs/heads/ignite-843
Commit: 0fce437c95837b30a9eb15a537793904d9630820
Parents: f15f8bd
Author: AKuznetsov <akuznetsov@gridgain.com>
Authored: Mon Aug 24 23:50:14 2015 +0700
Committer: AKuznetsov <akuznetsov@gridgain.com>
Committed: Mon Aug 24 23:50:14 2015 +0700

----------------------------------------------------------------------
 .../src/main/js/controllers/common-module.js    | 32 +++++++++++++++++++-
 1 file changed, 31 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/0fce437c/modules/control-center-web/src/main/js/controllers/common-module.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/controllers/common-module.js b/modules/control-center-web/src/main/js/controllers/common-module.js
index be4a6a2..ef883fb 100644
--- a/modules/control-center-web/src/main/js/controllers/common-module.js
+++ b/modules/control-center-web/src/main/js/controllers/common-module.js
@@ -919,6 +919,7 @@ controlCenterModule.service('$preview', [function () {
         previewInit: function (editor) {
             editor.setReadOnly(true);
             editor.setOption("highlightActiveLine", false);
+            editor.$blockScrolling = Infinity;
 
             var renderer = editor.renderer;
 
@@ -1107,6 +1108,35 @@ controlCenterModule.service('$code', ['$common', function ($common)
{
         this.fields = fields;
     }
 
+    var eventGroups = {
+        EVTS_CHECKPOINT: ['EVT_CHECKPOINT_SAVED', 'EVT_CHECKPOINT_LOADED', 'EVT_CHECKPOINT_REMOVED'],
+        EVTS_DEPLOYMENT: ['EVT_CLASS_DEPLOYED', 'EVT_CLASS_UNDEPLOYED', 'EVT_CLASS_DEPLOY_FAILED',
'EVT_TASK_DEPLOYED',
+            'EVT_TASK_UNDEPLOYED', 'EVT_TASK_DEPLOY_FAILED'],
+        EVTS_ERROR: ['EVT_JOB_TIMEDOUT', 'EVT_JOB_FAILED', 'EVT_JOB_FAILED_OVER', 'EVT_JOB_REJECTED',
'EVT_JOB_CANCELLED',
+            'EVT_TASK_TIMEDOUT', 'EVT_TASK_FAILED', 'EVT_CLASS_DEPLOY_FAILED', 'EVT_TASK_DEPLOY_FAILED',
+            'EVT_TASK_DEPLOYED', 'EVT_TASK_UNDEPLOYED', 'EVT_CACHE_REBALANCE_STARTED', 'EVT_CACHE_REBALANCE_STOPPED'],
+        EVTS_DISCOVERY: ['EVT_NODE_JOINED', 'EVT_NODE_LEFT', 'EVT_NODE_FAILED', 'EVT_NODE_SEGMENTED',
+            'EVT_CLIENT_NODE_DISCONNECTED', 'EVT_CLIENT_NODE_RECONNECTED'],
+        EVTS_JOB_EXECUTION: ['EVT_JOB_MAPPED', 'EVT_JOB_RESULTED', 'EVT_JOB_FAILED_OVER',
'EVT_JOB_STARTED',
+            'EVT_JOB_FINISHED', 'EVT_JOB_TIMEDOUT', 'EVT_JOB_REJECTED', 'EVT_JOB_FAILED',
'EVT_JOB_QUEUED',
+            'EVT_JOB_CANCELLED'],
+        EVTS_TASK_EXECUTION: ['EVT_TASK_STARTED', 'EVT_TASK_FINISHED', 'EVT_TASK_FAILED',
'EVT_TASK_TIMEDOUT',
+            'EVT_TASK_SESSION_ATTR_SET', 'EVT_TASK_REDUCED'],
+        EVTS_CACHE: ['EVT_CACHE_ENTRY_CREATED', 'EVT_CACHE_ENTRY_DESTROYED', 'EVT_CACHE_OBJECT_PUT',
+            'EVT_CACHE_OBJECT_READ', 'EVT_CACHE_OBJECT_REMOVED', 'EVT_CACHE_OBJECT_LOCKED',
'EVT_CACHE_OBJECT_UNLOCKED',
+            'EVT_CACHE_OBJECT_SWAPPED', 'EVT_CACHE_OBJECT_UNSWAPPED', 'EVT_CACHE_OBJECT_EXPIRED'],
+        EVTS_CACHE_REBALANCE: ['EVT_CACHE_REBALANCE_STARTED', 'EVT_CACHE_REBALANCE_STOPPED',
+            'EVT_CACHE_REBALANCE_PART_LOADED', 'EVT_CACHE_REBALANCE_PART_UNLOADED', 'EVT_CACHE_REBALANCE_OBJECT_LOADED',
+            'EVT_CACHE_REBALANCE_OBJECT_UNLOADED', 'EVT_CACHE_REBALANCE_PART_DATA_LOST'],
+        EVTS_CACHE_LIFECYCLE: ['EVT_CACHE_STARTED', 'EVT_CACHE_STOPPED', 'EVT_CACHE_NODES_LEFT'],
+        EVTS_CACHE_QUERY: ['EVT_CACHE_QUERY_EXECUTED', 'EVT_CACHE_QUERY_OBJECT_READ'],
+        EVTS_SWAPSPACE: ['EVT_SWAP_SPACE_CLEARED', 'EVT_SWAP_SPACE_DATA_REMOVED', 'EVT_SWAP_SPACE_DATA_READ',
+            'EVT_SWAP_SPACE_DATA_STORED', 'EVT_SWAP_SPACE_DATA_EVICTED'],
+        EVTS_IGFS: ['EVT_IGFS_FILE_CREATED', 'EVT_IGFS_FILE_RENAMED', 'EVT_IGFS_FILE_DELETED',
'EVT_IGFS_FILE_OPENED_READ',
+            'EVT_IGFS_FILE_OPENED_WRITE', 'EVT_IGFS_FILE_CLOSED_WRITE', 'EVT_IGFS_FILE_CLOSED_READ',
'EVT_IGFS_FILE_PURGED',
+            'EVT_IGFS_META_UPDATED', 'EVT_IGFS_DIR_CREATED', 'EVT_IGFS_DIR_RENAMED', 'EVT_IGFS_DIR_DELETED']
+    };
+
     var atomicConfiguration = new ClassDescriptor('org.apache.ignite.configuration.AtomicConfiguration',
{
         backups: null,
         cacheMode: {type: 'enum', enumClass: 'CacheMode'},
@@ -1389,7 +1419,7 @@ controlCenterModule.service('$code', ['$common', function ($common)
{
 
                         res.line('<!-- EventType.' + eventGroup + ' -->');
 
-                        var eventList = dataStructures.eventGroups[eventGroup];
+                        var eventList = eventGroups[eventGroup];
 
                         for (var k = 0; k < eventList.length; k++) {
                             res.line('<util:constant static-field="org.apache.ignite.events.EventType.'
+ eventList[k] + '"/>')


Mime
View raw message