Interface CacheMonitor

All Known Implementing Classes:
CacheMonitorImpl

public interface CacheMonitor
Author:
paul
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Remove all items from all caches.
    void
    clearCache(String cacheName)
    Remove all items from the cache with the given name.
    void
    Disable collection of statistics on the caches.
    void
    Enable collection of statistics on the caches.
    getStats(Locale locale)
    Obtain the cache statistics in HTML format.
  • Method Details

    • clearAllCaches

      void clearAllCaches()
      Remove all items from all caches.
    • clearCache

      void clearCache(String cacheName) throws IllegalArgumentException
      Remove all items from the cache with the given name.
      Parameters:
      cacheName - cache
      Throws:
      IllegalArgumentException - if no such cache exist with the given name
    • disableStatistics

      void disableStatistics()
      Disable collection of statistics on the caches.
    • enableStatistics

      void enableStatistics()
      Enable collection of statistics on the caches.
    • getStats

      String getStats(Locale locale)
      Obtain the cache statistics in HTML format.
      Parameters:
      locale - a locale to use to format numbers and render messages