ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject incubator-ignite git commit: add logging
Date Fri, 03 Apr 2015 09:26:55 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/ignite-cacheplug-rmtvalid be31dc22a -> 0dbfe66c0


add logging


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

Branch: refs/heads/ignite-cacheplug-rmtvalid
Commit: 0dbfe66c0583d304cf07c1b1244d7ea8b23d8271
Parents: be31dc2
Author: Artem Shutak <ashutak@gridgain.com>
Authored: Fri Apr 3 12:26:56 2015 +0300
Committer: Artem Shutak <ashutak@gridgain.com>
Committed: Fri Apr 3 12:26:56 2015 +0300

----------------------------------------------------------------------
 .../internal/processors/cache/GridCacheProcessor.java  |  4 ++++
 .../org/apache/ignite/internal/util/IgniteUtils.java   | 13 +++++++++++--
 2 files changed, 15 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/0dbfe66c/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProcessor.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProcessor.java
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProcessor.java
index 2619156..14dd2f4 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProcessor.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProcessor.java
@@ -2441,6 +2441,8 @@ public class GridCacheProcessor extends GridProcessorAdapter {
     @SuppressWarnings("unchecked")
     private void registerMbean(Object o, @Nullable String cacheName, boolean near)
         throws IgniteCheckedException {
+        log.info(">>>>> registerMbean with obj=" + o);
+        
         assert o != null;
 
         MBeanServer srvr = ctx.config().getMBeanServer();
@@ -2454,6 +2456,8 @@ public class GridCacheProcessor extends GridProcessorAdapter {
         for (Class<?> itf : o.getClass().getInterfaces()) {
             if (itf.getName().endsWith("MBean")) {
                 try {
+                    log.info(">>>>> registerMbean 2 with obj=" + o);
+                    
                     U.registerCacheMBean(srvr, ctx.gridName(), cacheName, o.getClass().getName(),
o,
                         (Class<Object>)itf);
                 }

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/0dbfe66c/modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java b/modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java
index 8aebac2..e48e398 100644
--- a/modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java
+++ b/modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java
@@ -4045,12 +4045,21 @@ public abstract class IgniteUtils {
         assert mbeanSrv != null;
         assert name != null;
         assert itf != null;
-
+        System.out.println(">>>>> IU#reg 1");
+        
         DynamicMBean mbean = new IgniteStandardMXBean(impl, itf);
 
+        System.out.println(">>>>> IU#reg 2");
+
         mbean.getMBeanInfo();
 
-        return mbeanSrv.registerMBean(mbean, makeCacheMBeanName(gridName, cacheName, name)).getObjectName();
+        System.out.println(">>>>> IU#reg 3");
+
+        ObjectName objectName = mbeanSrv.registerMBean(mbean, makeCacheMBeanName(gridName,
cacheName, name)).getObjectName();
+
+        System.out.println(">>>>> IU#reg 4");
+        
+        return objectName;
     }
 
     /**


Mime
View raw message