User: patriot1burke
Date: 02/01/30 16:04:45
Modified: src/main/org/jboss/ejb/plugins NoPassivationCachePolicy.java
EntityInstanceCache.java
Log:
added getCacheSize and flushCache to MBean interface for EntityContainer
Revision Changes Path
1.8 +2 -1
jboss/src/main/org/jboss/ejb/plugins/NoPassivationCachePolicy.java
Index: NoPassivationCachePolicy.java
===================================================================
RCS file:
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/NoPassivationCachePolicy.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- NoPassivationCachePolicy.java 2001/12/19 05:42:31 1.7
+++ NoPassivationCachePolicy.java 2002/01/31 00:04:45 1.8
@@ -15,7 +15,7 @@
*
* @see AbstractInstanceCache
* @author <a href="mailto:[EMAIL PROTECTED]">Simone Bordet</a>
- * @version $Revision: 1.7 $
+ * @version $Revision: 1.8 $
*/
public class NoPassivationCachePolicy
implements EnterpriseContextCachePolicy
@@ -96,6 +96,7 @@
}
}
public void flush() {}
+ public int size() { return m_map.size(); }
// Y overrides ---------------------------------------------------
1.11 +16 -1 jboss/src/main/org/jboss/ejb/plugins/EntityInstanceCache.java
Index: EntityInstanceCache.java
===================================================================
RCS file:
/cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/EntityInstanceCache.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- EntityInstanceCache.java 2001/08/03 17:15:44 1.10
+++ EntityInstanceCache.java 2002/01/31 00:04:45 1.11
@@ -21,7 +21,13 @@
*
* @author <a href="mailto:[EMAIL PROTECTED]">Simone Bordet</a>
* @author <a href="[EMAIL PROTECTED]">Bill Burke</a>
- * @version $Revision: 1.10 $
+ * @version $Revision: 1.11 $
+ *
+ * <p><b>Revisions:</b>
+ * <p><b>2001/01/29: billb</b>
+ * <ol>
+ * <li>Expose cache flush and size
+ * </ol>
*/
public class EntityInstanceCache
extends AbstractInstanceCache
@@ -38,6 +44,15 @@
// Constructors --------------------------------------------------
// Public --------------------------------------------------------
+
+ public int getCacheSize() {
+ return getCache().size();
+ }
+
+ public void flush() {
+ getCache().flush();
+ }
+
/* From ContainerPlugin interface */
public void setContainer(Container c)
{
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development