Class CacheMonitorImpl

java.lang.Object
ubic.gemma.web.controller.monitoring.CacheMonitorImpl
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, CacheMonitor

@Component public class CacheMonitorImpl extends Object implements CacheMonitor, org.springframework.beans.factory.InitializingBean
Get statistics about and manage caches.
Author:
paul
  • Constructor Details

    • CacheMonitorImpl

      public CacheMonitorImpl()
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
    • clearAllCaches

      public void clearAllCaches()
      Description copied from interface: CacheMonitor
      Remove all items from all caches.
      Specified by:
      clearAllCaches in interface CacheMonitor
    • clearCache

      public void clearCache(String cacheName)
      Description copied from interface: CacheMonitor
      Remove all items from the cache with the given name.
      Specified by:
      clearCache in interface CacheMonitor
      Parameters:
      cacheName - cache
    • disableStatistics

      public void disableStatistics()
      Description copied from interface: CacheMonitor
      Disable collection of statistics on the caches.
      Specified by:
      disableStatistics in interface CacheMonitor
    • enableStatistics

      public void enableStatistics()
      Description copied from interface: CacheMonitor
      Enable collection of statistics on the caches.
      Specified by:
      enableStatistics in interface CacheMonitor
    • getStats

      public String getStats(Locale locale)
      Description copied from interface: CacheMonitor
      Obtain the cache statistics in HTML format.
      Specified by:
      getStats in interface CacheMonitor
      Parameters:
      locale - a locale to use to format numbers and render messages