set logger in LRU cache to applications event logger.

This commit is contained in:
hns 2001-08-31 15:45:45 +00:00
parent 0b35d05b2b
commit 9646764d5f

View file

@ -48,6 +48,7 @@ public final class NodeManager {
// Make actual cache size bigger, since we use it only up to the threshold // Make actual cache size bigger, since we use it only up to the threshold
// cache = new CacheMap ((int) Math.ceil (cacheSize/0.75f), 0.75f); // cache = new CacheMap ((int) Math.ceil (cacheSize/0.75f), 0.75f);
cache = new CacheMap (cacheSize, 0.75f); cache = new CacheMap (cacheSize, 0.75f);
cache.setLogger (app.getLogger ("event"));
app.logEvent ("set up node cache ("+cacheSize+")"); app.logEvent ("set up node cache ("+cacheSize+")");
safe = new WrappedNodeManager (this); safe = new WrappedNodeManager (this);