Author: orbiter
Date: 2006-03-09 12:31:17 +0100 (Thu, 09 Mar 2006)
New Revision: 1866
Modified:
trunk/htroot/PerformanceQueues_p.html
trunk/htroot/PerformanceQueues_p.java
trunk/source/de/anomic/plasma/plasmaWordIndex.java
trunk/source/de/anomic/plasma/plasmaWordIndexCache.java
Log:
added minimum age of word in cache to performance menu
Modified: trunk/htroot/PerformanceQueues_p.html
===================================================================
--- trunk/htroot/PerformanceQueues_p.html 2006-03-09 10:46:02 UTC (rev
1865)
+++ trunk/htroot/PerformanceQueues_p.html 2006-03-09 11:31:17 UTC (rev
1866)
@@ -94,6 +94,13 @@
</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>
<td class=small rowspan="2">
Modified: trunk/htroot/PerformanceQueues_p.java
===================================================================
--- trunk/htroot/PerformanceQueues_p.java 2006-03-09 10:46:02 UTC (rev
1865)
+++ trunk/htroot/PerformanceQueues_p.java 2006-03-09 11:31:17 UTC (rev
1866)
@@ -254,6 +254,7 @@
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)); // minutes
prop.put("maxWaitingWordFlush",
switchboard.getConfig("maxWaitingWordFlush", "180"));
prop.put("wordCacheMaxLow", switchboard.getConfig("wordCacheMaxLow",
"10000"));
prop.put("wordCacheMaxHigh", switchboard.getConfig("wordCacheMaxHigh",
"10000"));
Modified: trunk/source/de/anomic/plasma/plasmaWordIndex.java
===================================================================
--- trunk/source/de/anomic/plasma/plasmaWordIndex.java 2006-03-09 10:46:02 UTC
(rev 1865)
+++ trunk/source/de/anomic/plasma/plasmaWordIndex.java 2006-03-09 11:31:17 UTC
(rev 1866)
@@ -94,6 +94,10 @@
return ramCache.maxURLinWordCache();
}
+ public long minAgeOfWordCache() {
+ return ramCache.minAgeOfWordCache();
+ }
+
public long maxAgeOfWordCache() {
return ramCache.maxAgeOfWordCache();
}
Modified: trunk/source/de/anomic/plasma/plasmaWordIndexCache.java
===================================================================
--- trunk/source/de/anomic/plasma/plasmaWordIndexCache.java 2006-03-09
10:46:02 UTC (rev 1865)
+++ trunk/source/de/anomic/plasma/plasmaWordIndexCache.java 2006-03-09
11:31:17 UTC (rev 1866)
@@ -210,6 +210,10 @@
return hashScore.getMaxScore();
}
+ public long minAgeOfWordCache() {
+ return System.currentTimeMillis() - longEmit(hashDate.getMaxScore());
+ }
+
public long maxAgeOfWordCache() {
return System.currentTimeMillis() - longEmit(hashDate.getMinScore());
}
_______________________________________________
YaCy-svn mailing list
[email protected]
http://lists.berlios.de/mailman/listinfo/yacy-svn