protected void setupCollector(BlobStatsCollector statsCollector) { if (store instanceof AbstractBlobStore){ ((AbstractBlobStore) store).setStatsCollector(statsCollector); } }
/** * 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(); } } }
/** * 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(); } } }