[jboss-cvs] JBossCache/src/org/jboss/cache/pojo/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/pojo/jmx PojoCacheJmxWrapperMBean.java
Log:
[JBCACHE-928] Expose CacheStatus
Revision Changes Path
1.6 +17 -1 JBossCache/src/org/jboss/cache/pojo/jmx/PojoCacheJmxWrapperMBean.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: PojoCacheJmxWrapperMBean.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/pojo/jmx/PojoCacheJmxWrapperMBean.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- PojoCacheJmxWrapperMBean.java 22 May 2007 22:52:52 -0000 1.5
+++ PojoCacheJmxWrapperMBean.java 23 May 2007 19:24:37 -0000 1.6
@@ -22,6 +22,7 @@
package org.jboss.cache.pojo.jmx;
import org.jboss.cache.Cache;
+import org.jboss.cache.CacheStatus;
import org.jboss.cache.config.Configuration;
import org.jboss.cache.pojo.PojoCache;
import org.jboss.cache.pojo.PojoCacheAlreadyDetachedException;
@@ -31,7 +32,7 @@
* StandardMBean interface for {@link PojoCacheJmxWrapperMBean}.
*
* @author <a href="brian.stansberry at jboss.com">Brian Stansberry</a>
- * @version $Revision: 1.5 $
+ * @version $Revision: 1.6 $
*/
public interface PojoCacheJmxWrapperMBean
{
@@ -65,6 +66,21 @@
void destroy() throws PojoCacheException;
/**
+ * 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();
+
+ /**
* Returns the PojoCache.
*
* @return the PojoCache
More information about the jboss-cvs-commits
mailing list