Search in sources :

Example 1 with AbstractBlobStore

use of org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore 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();
    }
}
Also used : AbstractBlobStore(org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore) BlobStoreStats(org.apache.jackrabbit.oak.plugins.blob.BlobStoreStats) CachingBlobStore(org.apache.jackrabbit.oak.plugins.blob.CachingBlobStore)

Aggregations

BlobStoreStats (org.apache.jackrabbit.oak.plugins.blob.BlobStoreStats)1 CachingBlobStore (org.apache.jackrabbit.oak.plugins.blob.CachingBlobStore)1 AbstractBlobStore (org.apache.jackrabbit.oak.spi.blob.AbstractBlobStore)1