bundles = new ConcurrentCache<NodeId, NodePropBundle>(context.getHomeDir().getName() + "BundleCache");
bundles.setMaxMemorySize(bundleCacheSize);
bundles.setAccessListener(this);
// statistics
RepositoryStatisticsImpl stats = context.getRepositoryStatistics();
readCounter = stats.getCounter(
RepositoryStatistics.Type.BUNDLE_READ_COUNTER);
writeCounter = stats.getCounter(
RepositoryStatistics.Type.BUNDLE_WRITE_COUNTER);
writeDuration = stats.getCounter(
RepositoryStatistics.Type.BUNDLE_WRITE_DURATION);
cacheAccessCounter = stats.getCounter(
RepositoryStatistics.Type.BUNDLE_CACHE_ACCESS_COUNTER);
cacheSizeCounter = stats.getCounter(
RepositoryStatistics.Type.BUNDLE_CACHE_SIZE_COUNTER);
cacheMissCounter = stats.getCounter(
RepositoryStatistics.Type.BUNDLE_CACHE_MISS_COUNTER);
cacheMissDuration = stats.getCounter(
RepositoryStatistics.Type.BUNDLE_CACHE_MISS_DURATION);
}