Class BlockCacheManager

    • Field Detail

      • CACHE_PROPERTY_BASE

        public static final String CACHE_PROPERTY_BASE
    • Constructor Detail

      • BlockCacheManager

        public BlockCacheManager()
    • Method Detail

      • 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
      • getFullyQualifiedPropertyPrefix

        public static String getFullyQualifiedPropertyPrefix​(String prefix)
        A convenience method that returns a string of the from tserver.cache.config.<prefix>.default. this method is useful for configuring a cache manager.
        Parameters:
        prefix - A unique identifier that corresponds to a particular BlockCacheManager implementation.
        See Also:
        BlockCacheManager.Configuration.getProperties(String, CacheType)
      • getFullyQualifiedPropertyPrefix

        public static String getFullyQualifiedPropertyPrefix​(String prefix,
                                                             CacheType type)
        A convenience method that returns a string of the from tserver.cache.config.<prefix>.<type>. this method is useful for configuring a cache manager.
        Parameters:
        prefix - A unique identifier that corresponds to a particular BlockCacheManager implementation.
        See Also:
        BlockCacheManager.Configuration.getProperties(String, CacheType)