ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [1/2] incubator-ignite git commit: IGNITE-49 Fixed notes
Date Wed, 28 Jan 2015 06:16:12 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/sprint-1 c22401747 -> 812076ab5


IGNITE-49 Fixed notes


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

Branch: refs/heads/sprint-1
Commit: 277dc153c28435e99b273f37a1784bfd7a61255f
Parents: 8be6dbe
Author: nikolay_tikhonov <ntikhonov@gridgain.com>
Authored: Tue Jan 27 19:44:24 2015 +0300
Committer: nikolay_tikhonov <ntikhonov@gridgain.com>
Committed: Tue Jan 27 19:44:24 2015 +0300

----------------------------------------------------------------------
 .../main/java/org/apache/ignite/cache/CacheManager.java   | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/277dc153/modules/core/src/main/java/org/apache/ignite/cache/CacheManager.java
----------------------------------------------------------------------
diff --git a/modules/core/src/main/java/org/apache/ignite/cache/CacheManager.java b/modules/core/src/main/java/org/apache/ignite/cache/CacheManager.java
index f6ac23a..bc9e3f4 100644
--- a/modules/core/src/main/java/org/apache/ignite/cache/CacheManager.java
+++ b/modules/core/src/main/java/org/apache/ignite/cache/CacheManager.java
@@ -19,9 +19,11 @@ package org.apache.ignite.cache;
 
 import org.apache.ignite.*;
 import org.apache.ignite.configuration.*;
+import org.apache.ignite.internal.mxbean.*;
 
 import javax.cache.*;
 import javax.cache.configuration.*;
+import javax.cache.management.*;
 import javax.management.*;
 import java.net.*;
 import java.util.*;
@@ -348,7 +350,13 @@ public class CacheManager implements javax.cache.CacheManager {
 
         try {
             if (!isRegistered(mBeanServer, registeredObjectName))
-                mBeanServer.registerMBean(mxbean, registeredObjectName);
+                if (objectName.equals(CACHE_CONFIGURATION))
+                    mBeanServer.registerMBean(new IgniteStandardMXBean((CacheMXBean)mxbean,
CacheMXBean.class),
+                        registeredObjectName);
+                else
+                    mBeanServer.registerMBean(
+                        new IgniteStandardMXBean((CacheStatisticsMXBean)mxbean, CacheStatisticsMXBean.class),
+                        registeredObjectName);
         }
         catch (Exception e) {
             throw new CacheException("Failed to register MBean: " + registeredObjectName,
e);


Mime
View raw message