Display the size of HashBlacklistedCache on PerformanceMemory page.

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2357 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
hermens 19 years ago
parent c7b6389ca1
commit dcbb4d0a6b

@ -395,6 +395,10 @@ Increasing this cache may speed up crawling, but not much space is needed, so th
<td class="small">DNSNoCache</td>
<td class="small">#[namecache.noCache]#</td>
</tr>
<tr class="TableCellLight">
<td class="small">HashBlacklistedCache</td>
<td class="small">#[blacklistcache.size]#</td>
</tr>
</table>
</p>

@ -287,7 +287,8 @@ public class PerformanceMemory_p {
prop.put("namecache.hit",Long.toString(amount));
amount = httpc.nameCacheNoCachingListSize();
prop.put("namecache.noCache",Long.toString(amount));
amount = sb.urlBlacklist.blacklistCacheSize();
prop.put("blacklistcache.size",Long.toString(amount));
// return rewrite values for templates
return prop;
}

@ -90,6 +90,10 @@ public class plasmaURLPattern {
hostpaths.put(host.toLowerCase(), path);
}
public int blacklistCacheSize() {
return cachedUrlHashs.size();
}
public boolean hashInBlacklistedCache(String urlHash) {
return cachedUrlHashs.contains(urlHash);
}

Loading…
Cancel
Save