public class EhcacheHibernateMBeanRegistrationImpl extends Object implements EhcacheHibernateMBeanRegistration, 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()
Stop the listener and free any resources.
|
void |
enableHibernateStatisticsSupport(org.hibernate.SessionFactory sessionFactory)
Enable hibernate statistics in the mbean.
|
Status |
getStatus()
Returns the listener status.
|
void |
init()
No-op in this case
|
void |
notifyCacheAdded(String cacheName)
No-op in this case
|
void |
notifyCacheRemoved(String cacheName)
No-op in this case
|
void |
registerMBeanForCacheManager(CacheManager manager,
Properties properties)
Registers MBean for the input manager and session factory properties.
|
public EhcacheHibernateMBeanRegistrationImpl()
public void registerMBeanForCacheManager(CacheManager manager, Properties properties) throws Exception
registerMBeanForCacheManager in interface EhcacheHibernateMBeanRegistrationExceptionpublic void enableHibernateStatisticsSupport(org.hibernate.SessionFactory sessionFactory)
enableHibernateStatisticsSupport in interface EhcacheHibernateMBeanRegistrationpublic void dispose()
throws CacheException
dispose in interface CacheManagerEventListenerCacheException - - all exceptions are wrapped in CacheExceptionpublic Status getStatus()
getStatus in interface CacheManagerEventListenerpublic void init()
throws CacheException
init in interface CacheManagerEventListenerCacheException - - all exceptions are wrapped in CacheExceptionpublic void notifyCacheAdded(String cacheName)
notifyCacheAdded in interface CacheManagerEventListenercacheName - the name of the Cache the operation relates toCacheEventListenerpublic void notifyCacheRemoved(String cacheName)
notifyCacheRemoved in interface CacheManagerEventListenercacheName - the name of the Cache the operation relates toCopyright © 2003-2014 Terracotta, Inc.. All Rights Reserved.