[jboss-cvs] JBossAS SVN: r80721 - trunk/server/src/main/org/jboss/deployment/vfs.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sun Nov 9 09:36:58 EST 2008


Author: alesj
Date: 2008-11-09 09:36:58 -0500 (Sun, 09 Nov 2008)
New Revision: 80721

Modified:
   trunk/server/src/main/org/jboss/deployment/vfs/VFSCacheStatistics.java
   trunk/server/src/main/org/jboss/deployment/vfs/VFSCacheStatisticsMBean.java
Log:
Get cache impl info.

Modified: trunk/server/src/main/org/jboss/deployment/vfs/VFSCacheStatistics.java
===================================================================
--- trunk/server/src/main/org/jboss/deployment/vfs/VFSCacheStatistics.java	2008-11-09 14:36:04 UTC (rev 80720)
+++ trunk/server/src/main/org/jboss/deployment/vfs/VFSCacheStatistics.java	2008-11-09 14:36:58 UTC (rev 80721)
@@ -63,6 +63,11 @@
       return (lastInsert > 0) ? new Date(lastInsert) : null;
    }
 
+   public String cacheToString()
+   {
+      return getStatistics().toString();
+   }
+
    private CacheStatistics getStatistics()
    {
       if (statistics == null)
@@ -95,4 +100,10 @@
       }
       return statistics;
    }
+
+   @Override
+   public String toString()
+   {
+      return "Noop Cache / Statistics";
+   }
 }

Modified: trunk/server/src/main/org/jboss/deployment/vfs/VFSCacheStatisticsMBean.java
===================================================================
--- trunk/server/src/main/org/jboss/deployment/vfs/VFSCacheStatisticsMBean.java	2008-11-09 14:36:04 UTC (rev 80720)
+++ trunk/server/src/main/org/jboss/deployment/vfs/VFSCacheStatisticsMBean.java	2008-11-09 14:36:58 UTC (rev 80721)
@@ -48,4 +48,11 @@
     * @return the last insert timestamp
     */
    Date lastInsert();
+
+   /**
+    * Get cache impl to string info. 
+    *
+    * @return cache to string info
+    */
+   String cacheToString();
 }
\ No newline at end of file




More information about the jboss-cvs-commits mailing list