public class EhcacheHibernateMBeanRegistrationImpl extends java.lang.Object implements EhcacheHibernateMBeanRegistration, net.sf.ehcache.event.CacheManagerEventListener
EhcacheHibernateMBeanRegistration.
Also implements CacheManagerEventListener. Deregisters mbeans when the associated cachemanager is shutdown.
| Constructor and Description |
|---|
EhcacheHibernateMBeanRegistrationImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
void |
enableHibernateStatisticsSupport(SessionFactory sessionFactory)
Enable hibernate statistics in the mbean.
|
net.sf.ehcache.Status |
getStatus() |
void |
init()
NOTE : No-op in this case
|
void |
notifyCacheAdded(java.lang.String cacheName)
NOTE : No-op in this case
|
void |
notifyCacheRemoved(java.lang.String cacheName)
NOTE : No-op in this case
|
void |
registerMBeanForCacheManager(net.sf.ehcache.CacheManager manager,
java.util.Properties properties)
Registers MBean for the input manager and session factory properties.
|
public EhcacheHibernateMBeanRegistrationImpl()
public void registerMBeanForCacheManager(net.sf.ehcache.CacheManager manager,
java.util.Properties properties)
throws java.lang.Exception
EhcacheHibernateMBeanRegistrationregisterMBeanForCacheManager in interface EhcacheHibernateMBeanRegistrationmanager - the CacheManager to register the MBean forproperties - properties to used to create the associated SessionFactoryjava.lang.Exception - reflecting the source of the problem registering the MBeanpublic void enableHibernateStatisticsSupport(SessionFactory sessionFactory)
EhcacheHibernateMBeanRegistrationenableHibernateStatisticsSupport in interface EhcacheHibernateMBeanRegistrationsessionFactory - the SessionFactory to enable stats forpublic void dispose()
throws net.sf.ehcache.CacheException
dispose in interface net.sf.ehcache.event.CacheManagerEventListenernet.sf.ehcache.CacheExceptionpublic net.sf.ehcache.Status getStatus()
getStatus in interface net.sf.ehcache.event.CacheManagerEventListenerpublic void init()
throws net.sf.ehcache.CacheException
init in interface net.sf.ehcache.event.CacheManagerEventListenernet.sf.ehcache.CacheExceptionpublic void notifyCacheAdded(java.lang.String cacheName)
notifyCacheAdded in interface net.sf.ehcache.event.CacheManagerEventListenerpublic void notifyCacheRemoved(java.lang.String cacheName)
notifyCacheRemoved in interface net.sf.ehcache.event.CacheManagerEventListenerCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.