Class BlockCacheManager
java.lang.Object
org.apache.accumulo.core.spi.cache.BlockCacheManager
- Since:
- 2.0.0
- See Also:
-
org.apache.accumulo.core.spi
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract BlockCachecreateCache(BlockCacheManager.Configuration conf, CacheType type) Create a block cache using the supplied configurationgetBlockCache(CacheType type) Get the block cache of the given typevoidInitialize the caches for each CacheType based on the configurationvoidstop()Stop caches and release resources
-
Constructor Details
-
BlockCacheManager
public BlockCacheManager()
-
-
Method Details
-
start
Initialize the caches for each CacheType based on the configuration- Parameters:
conf- accumulo configuration
-
stop
public void stop()Stop caches and release resources -
getBlockCache
Get the block cache of the given type- Parameters:
type- block cache type- Returns:
- BlockCache or null if not enabled
-
createCache
Create a block cache using the supplied configuration- Parameters:
conf- cache configuration- Returns:
- configured block cache
-