Class BaseEmitterBean
- java.lang.Object
-
- javax.management.StandardMBean
-
- net.sf.ehcache.hibernate.management.impl.BaseEmitterBean
-
- All Implemented Interfaces:
javax.management.DynamicMBean,javax.management.MBeanRegistration,javax.management.NotificationBroadcaster,javax.management.NotificationEmitter
- Direct Known Subclasses:
EhcacheHibernate,EhcacheStatsImpl,HibernateStatsImpl,SampledCache,SampledCacheManager
public abstract class BaseEmitterBean extends javax.management.StandardMBean implements javax.management.NotificationEmitter- Author:
- gkeim
-
-
Field Summary
Fields Modifier and Type Field Description protected net.sf.ehcache.hibernate.management.impl.BaseEmitterBean.Emitteremitteremitterprotected java.util.concurrent.atomic.AtomicLongsequenceNumbersequenceNumber
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseEmitterBean(java.lang.Class<T> mbeanInterface)BaseEmitterBean
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddNotificationListener(javax.management.NotificationListener notif, javax.management.NotificationFilter filter, java.lang.Object callBack)voiddispose()Dispose of this SampledCacheManager and clean up held resourcesprotected abstract voiddoDispose()Dispose callback of subclassesabstract javax.management.MBeanNotificationInfo[]getNotificationInfo()voidremoveNotificationListener(javax.management.NotificationListener listener)voidremoveNotificationListener(javax.management.NotificationListener notif, javax.management.NotificationFilter filter, java.lang.Object callBack)voidsendNotification(java.lang.String eventType)sendNotificationvoidsendNotification(java.lang.String eventType, java.lang.Object data)sendNotificationvoidsendNotification(java.lang.String eventType, java.lang.Object data, java.lang.String msg)sendNotification-
Methods inherited from class javax.management.StandardMBean
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
-
-
-
-
Field Detail
-
emitter
protected final net.sf.ehcache.hibernate.management.impl.BaseEmitterBean.Emitter emitter
emitter
-
sequenceNumber
protected final java.util.concurrent.atomic.AtomicLong sequenceNumber
sequenceNumber
-
-
Method Detail
-
sendNotification
public void sendNotification(java.lang.String eventType)
sendNotification- Parameters:
eventType-
-
sendNotification
public void sendNotification(java.lang.String eventType, java.lang.Object data)sendNotification- Parameters:
eventType-data-
-
sendNotification
public void sendNotification(java.lang.String eventType, java.lang.Object data, java.lang.String msg)sendNotification- Parameters:
eventType-data-msg-
-
dispose
public final void dispose()
Dispose of this SampledCacheManager and clean up held resources
-
doDispose
protected abstract void doDispose()
Dispose callback of subclasses
-
addNotificationListener
public void addNotificationListener(javax.management.NotificationListener notif, javax.management.NotificationFilter filter, java.lang.Object callBack)- Specified by:
addNotificationListenerin interfacejavax.management.NotificationBroadcaster- See Also:
NotificationBroadcaster.addNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object)
-
getNotificationInfo
public abstract javax.management.MBeanNotificationInfo[] getNotificationInfo()
- Specified by:
getNotificationInfoin interfacejavax.management.NotificationBroadcaster- See Also:
NotificationBroadcaster.getNotificationInfo()
-
removeNotificationListener
public void removeNotificationListener(javax.management.NotificationListener listener) throws javax.management.ListenerNotFoundException- Specified by:
removeNotificationListenerin interfacejavax.management.NotificationBroadcaster- Throws:
javax.management.ListenerNotFoundException- See Also:
NotificationBroadcaster.removeNotificationListener(javax.management.NotificationListener)
-
removeNotificationListener
public void removeNotificationListener(javax.management.NotificationListener notif, javax.management.NotificationFilter filter, java.lang.Object callBack) throws javax.management.ListenerNotFoundException- Specified by:
removeNotificationListenerin interfacejavax.management.NotificationEmitter- Throws:
javax.management.ListenerNotFoundException- See Also:
NotificationEmitter.removeNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object)
-
-