[jboss-cvs] JBossCache/src-50/org/jboss/cache/pojo/jmx ...

Brian Stansberry brian.stansberry at jboss.com
Thu Nov 9 22:00:15 EST 2006


  User: bstansberry
  Date: 06/11/09 22:00:15

  Modified:    src-50/org/jboss/cache/pojo/jmx  JmxUtil.java
  Log:
  PojoCache does not directly do MBean registration
  
  Revision  Changes    Path
  1.4       +1 -32     JBossCache/src-50/org/jboss/cache/pojo/jmx/JmxUtil.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: JmxUtil.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src-50/org/jboss/cache/pojo/jmx/JmxUtil.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- JmxUtil.java	6 Nov 2006 05:00:35 -0000	1.3
  +++ JmxUtil.java	10 Nov 2006 03:00:15 -0000	1.4
  @@ -16,7 +16,7 @@
    * Various JMX related utilities
    *
    * @author Ben Wang
  - * @version $Id: JmxUtil.java,v 1.3 2006/11/06 05:00:35 bstansberry Exp $
  + * @version $Id: JmxUtil.java,v 1.4 2006/11/10 03:00:15 bstansberry Exp $
    */
   public class JmxUtil extends org.jboss.cache.jmx.JmxUtil
   {
  @@ -24,24 +24,6 @@
      public static final String PC_PREFIX = POJO_CACHE_DOMAIN + ":service=PojoCache,clusterName=";
      public static final String POJO_CACHE_TYPE = "cacheType=PojoCache";
   
  -   /*
  -   */
  -   public static void registerPojoCache(MBeanServer server, org.jboss.cache.pojo.PojoCache cache)
  -           throws Exception
  -   {
  -      if (server == null || cache == null)
  -         return;
  -
  -      String tmpName = getPojoCacheObjectName(cache);
  -
  -      // register the cache
  -      ObjectName tmpObj = new ObjectName(tmpName);
  -      if (!server.isRegistered(tmpObj))
  -         server.registerMBean(
  -                 new org.jboss.cache.pojo.jmx.PojoCache(
  -                         (org.jboss.cache.pojo.impl.PojoCacheImpl)cache),
  -                 tmpObj);
  -   }
      
      public static void registerPojoCache(MBeanServer server, PojoCacheJmxWrapper cache, String objectName)
            throws Exception
  @@ -117,19 +99,6 @@
         return plainName;
      }
   
  -   /*
  -   */
  -   public static void unregisterPojoCache(MBeanServer server, org.jboss.cache.pojo.PojoCache pcache)
  -           throws Exception
  -   {
  -      if (server == null || pcache == null)
  -         return;
  -
  -      // get the cache's registration name
  -      String tmpName = getPojoCacheObjectName(pcache);
  -      unregisterPojoCache(server, tmpName);
  -   }
  -   
      public static void unregisterPojoCache(MBeanServer server, String objectName)
            throws Exception
      {
  
  
  



More information about the jboss-cvs-commits mailing list