Interface EhcacheHibernateMBeanRegistration
-
- All Known Implementing Classes:
EhcacheHibernateMBeanRegistrationImpl
public interface EhcacheHibernateMBeanRegistrationInterface for helping registering mbeans for ehcache backed hibernate second-level cache- Author:
- Abhishek Sanoujam
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidenableHibernateStatisticsSupport(org.hibernate.SessionFactory sessionFactory)Enable hibernate statistics in the mbean.voidregisterMBeanForCacheManager(CacheManager manager, java.util.Properties properties)Registers MBean for the input manager and session factory properties.
-
-
-
Method Detail
-
registerMBeanForCacheManager
void registerMBeanForCacheManager(CacheManager manager, java.util.Properties properties) throws java.lang.Exception
Registers MBean for the input manager and session factory properties.MBeans will be registered based on the input session factory name. If the input name is null or blank, the name of the cache-manager is used
- Parameters:
manager-properties-- Throws:
java.lang.Exception
-
enableHibernateStatisticsSupport
void enableHibernateStatisticsSupport(org.hibernate.SessionFactory sessionFactory)
Enable hibernate statistics in the mbean.- Parameters:
sessionFactory-
-
-