added minimum age of word in cache to performance menu

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1866 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 19 years ago
parent f188611fc6
commit ddbeda738e

@ -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>

@ -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)); // minutes
prop.put("maxWaitingWordFlush", switchboard.getConfig("maxWaitingWordFlush", "180"));
prop.put("wordCacheMaxLow", switchboard.getConfig("wordCacheMaxLow", "10000"));
prop.put("wordCacheMaxHigh", switchboard.getConfig("wordCacheMaxHigh", "10000"));

@ -94,6 +94,10 @@ public final class plasmaWordIndex {
return ramCache.maxURLinWordCache();
}
public long minAgeOfWordCache() {
return ramCache.minAgeOfWordCache();
}
public long maxAgeOfWordCache() {
return ramCache.maxAgeOfWordCache();
}

@ -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());
}

Loading…
Cancel
Save