Author: bback
Date: 2006-10-05 16:52:13 +0000 (Thu, 05 Oct 2006)
New Revision: 10610

Modified:
   trunk/freenet/src/freenet/store/BerkeleyDBFreenetStore.java
   trunk/freenet/src/freenet/store/FreenetStore.java
Log:
made FreenetStores maxChkBlocks readable from outside

Modified: trunk/freenet/src/freenet/store/BerkeleyDBFreenetStore.java
===================================================================
--- trunk/freenet/src/freenet/store/BerkeleyDBFreenetStore.java 2006-10-05 
15:55:11 UTC (rev 10609)
+++ trunk/freenet/src/freenet/store/BerkeleyDBFreenetStore.java 2006-10-05 
16:52:13 UTC (rev 10610)
@@ -1642,6 +1642,10 @@
                if(shrinkNow)
                        maybeShrink(false, false);
        }
+    
+    public long getMaxKeys() {
+        return maxChkBlocks;
+    }

        public long hits() {
                return hits;

Modified: trunk/freenet/src/freenet/store/FreenetStore.java
===================================================================
--- trunk/freenet/src/freenet/store/FreenetStore.java   2006-10-05 15:55:11 UTC 
(rev 10609)
+++ trunk/freenet/src/freenet/store/FreenetStore.java   2006-10-05 16:52:13 UTC 
(rev 10610)
@@ -59,6 +59,8 @@
      * @throws DatabaseException 
      */
        public void setMaxKeys(long maxStoreKeys, boolean shrinkNow) throws 
DatabaseException, IOException;
+    
+    public long getMaxKeys();

        public long hits();



Reply via email to