//TODO Make stats collection configurable as it add slight overhead
//TODO Expose the stats as JMX beans
nodeCache = builder.buildCache(builder.getNodeCacheSize());
nodeCacheStats = new CacheStats(nodeCache, "MongoMk-Node",
builder.getWeigher(), builder.getNodeCacheSize());
nodeChildrenCache = builder.buildCache(builder.getChildrenCacheSize());
nodeChildrenCacheStats = new CacheStats(nodeChildrenCache, "MongoMk-NodeChildren",
builder.getWeigher(), builder.getChildrenCacheSize());
diffCache = builder.buildCache(builder.getDiffCacheSize());
diffCacheStats = new CacheStats(diffCache, "MongoMk-DiffCache",
builder.getWeigher(), builder.getDiffCacheSize());
docChildrenCache = builder.buildCache(builder.getDocChildrenCacheSize());
docChildrenCacheStats = new CacheStats(docChildrenCache, "MongoMk-DocChildren",
builder.getWeigher(), builder.getDocChildrenCacheSize());
init();
// initial reading of the revisions of other cluster nodes
backgroundRead();