Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
added minimum age of word in cache to performance menu
orbiterddbeda738e10
diff --git a/htroot/PerformanceQueues_p.html b/htroot/PerformanceQueues_p.htmlindex 51df4bc59..cc15c3d05 100644--- a/htroot/PerformanceQueues_p.html+++ b/htroot/PerformanceQueues_p.html@@ -93,6 +93,13 @@ Changes take effect immediately</td>This is the maximum age of a word index that is in the RAM cache in minutes.</td></tr>+ <tr valign="top" class="TableCellDark">+ <td class=small>Minimum Age of Word in cache:</td>+ <td class=small>#[minAgeOfWordCache]#</td>+ <td class=small>+ This is the minimum age of a word index that is in the RAM cache in minutes.+ </td>+ </tr><tr valign="top" class="TableCellDark"><td class=small>Maximum number of Word Caches, low limit:</td><td class=small><input name="wordCacheMaxLow" type="text" size="20" maxlength="100" value="#[wordCacheMaxLow]#"></td>diff --git a/htroot/PerformanceQueues_p.java b/htroot/PerformanceQueues_p.javaindex dafe81f37..de43f806d 100644--- a/htroot/PerformanceQueues_p.java+++ b/htroot/PerformanceQueues_p.java@@ -254,6 +254,7 @@ public class PerformanceQueues_p {prop.put("wordCacheRAMSize", switchboard.wordIndex.wordCacheRAMSize());prop.put("maxURLinWordCache", "" + switchboard.wordIndex.maxURLinWordCache());prop.put("maxAgeOfWordCache", "" + (switchboard.wordIndex.maxAgeOfWordCache() / 1000 / 60)); // minutes+ prop.put("minAgeOfWordCache", "" + (switchboard.wordIndex.minAgeOfWordCache() / 1000 / 60)); // minutesprop.put("maxWaitingWordFlush", switchboard.getConfig("maxWaitingWordFlush", "180"));prop.put("wordCacheMaxLow", switchboard.getConfig("wordCacheMaxLow", "10000"));prop.put("wordCacheMaxHigh", switchboard.getConfig("wordCacheMaxHigh", "10000"));diff --git a/source/de/anomic/plasma/plasmaWordIndex.java b/source/de/anomic/plasma/plasmaWordIndex.javaindex 3dad23f5b..74c1a6617 100644--- a/source/de/anomic/plasma/plasmaWordIndex.java+++ b/source/de/anomic/plasma/plasmaWordIndex.java@@ -94,6 +94,10 @@ public final class plasmaWordIndex {return ramCache.maxURLinWordCache();}+ public long minAgeOfWordCache() {+ return ramCache.minAgeOfWordCache();+ }+public long maxAgeOfWordCache() {return ramCache.maxAgeOfWordCache();}diff --git a/source/de/anomic/plasma/plasmaWordIndexCache.java b/source/de/anomic/plasma/plasmaWordIndexCache.javaindex 3a4f98306..bda1e8d71 100644--- a/source/de/anomic/plasma/plasmaWordIndexCache.java+++ b/source/de/anomic/plasma/plasmaWordIndexCache.java@@ -210,6 +210,10 @@ public final class plasmaWordIndexCache implements plasmaWordIndexInterface {return hashScore.getMaxScore();}+ public long minAgeOfWordCache() {+ return System.currentTimeMillis() - longEmit(hashDate.getMaxScore());+ }+public long maxAgeOfWordCache() {return System.currentTimeMillis() - longEmit(hashDate.getMinScore());}