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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidRemove all items from all caches.voidclearCache(String cacheName) Remove all items from the cache with the given name.voidDisable collection of statistics on the caches.voidEnable collection of statistics on the caches.Obtain the cache statistics in HTML format.
-
Constructor Details
-
CacheMonitorImpl
public CacheMonitorImpl()
-
-
Method Details
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean
-
clearAllCaches
public void clearAllCaches()Description copied from interface:CacheMonitorRemove all items from all caches.- Specified by:
clearAllCachesin interfaceCacheMonitor
-
clearCache
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
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
-