EhcacheHibernateMBeanRegistration.
Also implements CacheManagerEventListener. Deregisters mbeans when the associated cachemanager is shutdown.
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private volatile ObjectName | |
| private volatile EhcacheHibernate | |
| private static final Logger | |
| private static final int | |
| private String | |
| private Status |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public synchronized void | dispose()
Implements net. |
| public void | enableHibernateStatisticsSupport(SessionFactory sessionFactory)
Implements net. |
| private MBeanServer | |
| public synchronized Status | getStatus()
Implements net. |
| public void | |
| public void | notifyCacheAdded(String
the name of the cacheName)Cache the operation relates toImplements net. |
| public void | notifyCacheRemoved(String
the name of the cacheName)Cache the operation relates toImplements net. |
| private void | |
| public synchronized void | registerMBeanForCacheManager(final CacheManager manager, final Properties properties)
Implements net. |
| cacheManagerClusterUUID | back to summary |
|---|---|
| private String cacheManagerClusterUUID | |
| cacheManagerObjectName | back to summary |
|---|---|
| private volatile ObjectName cacheManagerObjectName | |
| ehcacheHibernate | back to summary |
|---|---|
| private volatile EhcacheHibernate ehcacheHibernate | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| MAX_MBEAN_REGISTRATION_RETRIES | back to summary |
|---|---|
| private static final int MAX_MBEAN_REGISTRATION_RETRIES | |
| registeredCacheManagerName | back to summary |
|---|---|
| private String registeredCacheManagerName | |
| status | back to summary |
|---|---|
| private Status status | |
| EhcacheHibernateMBeanRegistrationImpl | back to summary |
|---|---|
| public EhcacheHibernateMBeanRegistrationImpl() | |
| dispose | back to summary |
|---|---|
| public synchronized void dispose() throws CacheException Implements net. Doc from net. Stop the listener and free any resources.
| |
| enableHibernateStatisticsSupport | back to summary |
|---|---|
| public void enableHibernateStatisticsSupport(SessionFactory sessionFactory) Implements net. Enable hibernate statistics in the mbean. | |
| getMBeanServer | back to summary |
|---|---|
| private MBeanServer getMBeanServer() | |
| getStatus | back to summary |
|---|---|
| public synchronized Status getStatus() Implements net. Doc from net. Returns the listener status.
| |
| init | back to summary |
|---|---|
| public void init() throws CacheException Implements net. No-op in this case
| |
| notifyCacheAdded | back to summary |
|---|---|
| public void notifyCacheAdded(String cacheName) Implements net. No-op in this case
| |
| notifyCacheRemoved | back to summary |
|---|---|
| public void notifyCacheRemoved(String cacheName) Implements net. No-op in this case
| |
| registerBean | back to summary |
|---|---|
| private void registerBean(String name, CacheManager manager) throws Exception | |
| registerMBeanForCacheManager | back to summary |
|---|---|
| public synchronized void registerMBeanForCacheManager(final CacheManager manager, final Properties properties) throws Exception Implements net. 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 | |