use of org.apache.jackrabbit.oak.plugins.blob.CachingBlobStore in project jackrabbit-oak by apache.
the class DocumentNodeStoreBuilder method configureBlobStore.
/**
* BlobStore which are created by builder might get wrapped.
* So here we perform any configuration and also access any
* service exposed by the store
*
* @param blobStore store to config
*/
private void configureBlobStore(BlobStore blobStore) {
if (blobStore instanceof AbstractBlobStore) {
this.blobStoreStats = new BlobStoreStats(statisticsProvider);
((AbstractBlobStore) blobStore).setStatsCollector(blobStoreStats);
}
if (blobStore instanceof CachingBlobStore) {
blobStoreCacheStats = ((CachingBlobStore) blobStore).getCacheStats();
}
}
Aggregations