Package ubic.gemma.web.util
Class CacheMonitorImpl
- java.lang.Object
-
- ubic.gemma.web.util.CacheMonitorImpl
-
- All Implemented Interfaces:
InitializingBean,CacheMonitor
@Component public class CacheMonitorImpl extends Object implements CacheMonitor, InitializingBean
Get statistics about and manage caches.- Author:
- paul
-
-
Constructor Summary
Constructors Constructor Description CacheMonitorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()voidclearAllCaches()Remove all items from all caches.voidclearCache(String cacheName)Remove all items from the cache with the given name.voiddisableStatistics()Disable collection of statistics on the caches.voidenableStatistics()Enable collection of statistics on the caches.StringgetStats(Locale locale)Obtain the cache statistics in HTML format.
-
-
-
Method Detail
-
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSetin interfaceInitializingBean
-
clearAllCaches
public void clearAllCaches()
Description copied from interface:CacheMonitorRemove all items from all caches.- Specified by:
clearAllCachesin interfaceCacheMonitor
-
clearCache
public void clearCache(String cacheName)
Description copied from interface:CacheMonitorRemove all items from the cache with the given name.- Specified by:
clearCachein interfaceCacheMonitor- Parameters:
cacheName- cache
-
disableStatistics
public void disableStatistics()
Description copied from interface:CacheMonitorDisable collection of statistics on the caches.- Specified by:
disableStatisticsin interfaceCacheMonitor
-
enableStatistics
public void enableStatistics()
Description copied from interface:CacheMonitorEnable collection of statistics on the caches.- Specified by:
enableStatisticsin interfaceCacheMonitor
-
getStats
public String getStats(Locale locale)
Description copied from interface:CacheMonitorObtain the cache statistics in HTML format.- Specified by:
getStatsin interfaceCacheMonitor- Parameters:
locale- a locale to use to format numbers and render messages
-
-