ehcache

net.sf.ehcache.hibernate.management.impl
Interface EhcacheHibernateMBeanRegistration

All Known Implementing Classes:
EhcacheHibernateMBeanRegistrationImpl

public interface EhcacheHibernateMBeanRegistration

Interface for helping registering mbeans for ehcache backed hibernate second-level cache

Author:
Abhishek Sanoujam

Method Summary
 void enableHibernateStatisticsSupport(SessionFactory sessionFactory)
          Enable hibernate statistics in the mbean.
 void registerMBeanForCacheManager(CacheManager manager, Properties properties)
          Registers MBean for the input manager and session factory properties.
 

Method Detail

registerMBeanForCacheManager

void registerMBeanForCacheManager(CacheManager manager,
                                  Properties properties)
                                  throws 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:
Exception

enableHibernateStatisticsSupport

void enableHibernateStatisticsSupport(SessionFactory sessionFactory)
Enable hibernate statistics in the mbean.

Parameters:
sessionFactory -

ehcache

Copyright 2001-2014, Terracotta, Inc.