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

Brian Stansberry brian.stansberry at jboss.com
Wed May 23 15:24:37 EDT 2007


  User: bstansberry
  Date: 07/05/23 15:24:37

  Modified:    src/org/jboss/cache/jmx  CacheJmxWrapperMBean.java
  Log:
  [JBCACHE-928] Expose CacheStatus
  
  Revision  Changes    Path
  1.8       +16 -0     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.7
  retrieving revision 1.8
  diff -u -b -r1.7 -r1.8
  --- CacheJmxWrapperMBean.java	23 May 2007 10:28:48 -0000	1.7
  +++ CacheJmxWrapperMBean.java	23 May 2007 19:24:37 -0000	1.8
  @@ -8,6 +8,7 @@
   
   import org.jboss.cache.Cache;
   import org.jboss.cache.CacheException;
  +import org.jboss.cache.CacheStatus;
   import org.jboss.cache.config.Configuration;
   import org.jgroups.Address;
   
  @@ -36,6 +37,21 @@
      void destroy();
   
      /**
  +    * Gets where this object is in its lifecycle transitions.
  +    * 
  +    * @return the current status. Will not return <code>null</code>
  +    */
  +   CacheStatus getCacheStatus();
  +   
  +   /**
  +    * Legacy name for {@link #getCacheStatus()}. Retained to provide
  +    * compatibility with the JBoss AS JSR-77 integration layer.
  +    * 
  +    * @return the current status. Will not return <code>null</code>
  +    */
  +   CacheStatus getState();
  +
  +   /**
       * Retrieves a reference to the underlying {@link Cache}
       */
      Cache getCache();
  
  
  



More information about the jboss-cvs-commits mailing list