net.sf.ehcache.management |
This package contains JMX MBeans and implementations for management of ehcache.
This implementation attempts to follow Sun's JMX best practices. See
http://java.sun.com/javase/technologies/core/mntr-mgmt/javamanagement/best-practices.jsp
JMX was packaged with Java in JDK1.5. Keeping all JMX stuff in this package prevents leakage of
JMX concepts
so that JMX does not become a required dependency for ehcache.
The package also enables a separation of concerns so that management does not get mixed with
the implementation.
The client API is exposed through the ManagementService. Use ManagementService.registerMBeans(...)
to register a selection of MBeans to the MBeanServer provided to the method.
|
Java Source File Name | Type | Comment |
Cache.java | Class | |
CacheConfiguration.java | Class | |
CacheConfigurationMBean.java | Interface | |
CacheManager.java | Class | An MBean implementation for those attributes and operations we wish to expose on net.sf.ehcache.CacheManager.
This class is not Serializable because it is an adapter around a net.sf.ehcache.CacheManager, which is itself
not Serializable. |
CacheManagerMBean.java | Interface | |
CacheMBean.java | Interface | |
CacheStatistics.java | Class | A JMX CacheStatistics decorator for an ehcache Statistics class.
An immutable Cache statistics implementation}
This is like a value object, with the added ability to clear cache statistics on the cache.
That ability does not survive any Serialization of this class. |
CacheStatisticsMBean.java | Interface | |
ManagementService.java | Class | Ehcache CacheManagers and Caches have lifecycles. |
ManagementServiceTest.java | Class | These tests use the JDK1.5 platform mbean server
To interactively examine behaviour, add a Thread.sleep(...) and add -Dcom.sun.management.jmxremote to the java
invocation. |