Class BlockCacheManager

java.lang.Object
org.apache.accumulo.core.spi.cache.BlockCacheManager

public abstract class BlockCacheManager extends Object
Since:
2.0.0
See Also:
  • org.apache.accumulo.core.spi
  • Constructor Details

    • BlockCacheManager

      public BlockCacheManager()
  • Method Details

    • start

      public void start(BlockCacheManager.Configuration conf)
      Initialize the caches for each CacheType based on the configuration
      Parameters:
      conf - accumulo configuration
    • stop

      public void stop()
      Stop caches and release resources
    • getBlockCache

      public BlockCache getBlockCache(CacheType type)
      Get the block cache of the given type
      Parameters:
      type - block cache type
      Returns:
      BlockCache or null if not enabled
    • createCache

      protected abstract BlockCache createCache(BlockCacheManager.Configuration conf, CacheType type)
      Create a block cache using the supplied configuration
      Parameters:
      conf - cache configuration
      Returns:
      configured block cache