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

Brian Stansberry brian.stansberry at jboss.com
Thu Nov 9 21:23:34 EST 2006


  User: bstansberry
  Date: 06/11/09 21:23:34

  Modified:    src/org/jboss/cache/jmx  CacheJmxWrapperMBean.java
  Log:
  Remove methods that don't need to be in MBean interface
  
  Revision  Changes    Path
  1.2       +7 -33     JBossCache/src/org/jboss/cache/jmx/CacheJmxWrapperMBean.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: CacheJmxWrapperMBean.java
  ===================================================================
  RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/jmx/CacheJmxWrapperMBean.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- CacheJmxWrapperMBean.java	6 Nov 2006 05:01:42 -0000	1.1
  +++ CacheJmxWrapperMBean.java	10 Nov 2006 02:23:34 -0000	1.2
  @@ -21,57 +21,31 @@
    */
   package org.jboss.cache.jmx;
   
  -import javax.management.MBeanServer;
  -import javax.management.MalformedObjectNameException;
  -import javax.management.ObjectName;
   
  -import org.jboss.cache.config.Configuration;
   
   /**
    * StandardMBean interface for {@link CacheJmxWrapper}.
    * 
    * @author <a href="brian.stansberry at jboss.com">Brian Stansberry</a>
  - * @version $Revision: 1.1 $
  + * @version $Revision: 1.2 $
    */
   public interface CacheJmxWrapperMBean extends CacheMBean
   {   
  -   public String getCacheObjectName();
  -   
  -   public void setCacheObjectName(String name) throws MalformedObjectNameException;
  -   
  -   /**
  -    * Ensures the underlying cache is initialized and that needed JMX registrations
  -    * are done, and then calls {@link org.jboss.cache.Cache#create() create()} on the
  -    * underlying cache.
  -    * <p/>
  -    * If the underlying cache has not been instantiated, instantiates it.  Then,
  -    * if an MBeanServer has been passed to {@link #setMbeanServer(MBeanServer)},
  -    * this object registers itself with that server.  Then, if an MBeanServer is
  -    * available (either through <code>setMbeanServer</code> or 
  -    * {@link #preRegister(MBeanServer, ObjectName)}) and property 
  -    * <code>registerInterceptors</code> is <code>true</code>, registers the 
  -    * cache's interceptors with JMX.
  -    */
  -   void create() throws Exception;
  -   
  -   /**
  -    * Sets the configuration that the underlying cache should use.
  -    * 
  -    * @param config the configuration
  -    * 
  -    * @throws IllegalArgumentException if <code>config</code> is <code>null</code>.
  -    */
  -   void setConfiguration(Configuration config);
      
      /**
       * Gets whether this object should register the cache's interceptors
       * with JMX during {@link LifeCycle#create() create()}.
  +    * <p/>
  +    * Default is <code>true</code>.
       */
      boolean getRegisterInterceptors();
      
      /**
       * Sets whether this object should register the cache's interceptors
       * with JMX during {@link LifeCycle#create() create()}.
  +    * <p/>
  +    * Default is <code>true</code>.
       */
      void setRegisterInterceptors(boolean register);
  +   
   }
  
  
  



More information about the jboss-cvs-commits mailing list