ehcache

net.sf.ehcache.hibernate.management.impl
Class BaseEmitterBean

java.lang.Object
  extended by javax.management.StandardMBean
      extended by 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
protected  net.sf.ehcache.hibernate.management.impl.BaseEmitterBean.Emitter emitter
          emitter
protected  java.util.concurrent.atomic.AtomicLong sequenceNumber
          sequenceNumber
 
Constructor Summary
protected BaseEmitterBean(java.lang.Class<T> mbeanInterface)
          BaseEmitterBean
 
Method Summary
 void addNotificationListener(javax.management.NotificationListener notif, javax.management.NotificationFilter filter, java.lang.Object callBack)
           
abstract  javax.management.MBeanNotificationInfo[] getNotificationInfo()
           
 void removeNotificationListener(javax.management.NotificationListener listener)
           
 void removeNotificationListener(javax.management.NotificationListener notif, javax.management.NotificationFilter filter, java.lang.Object callBack)
           
 void sendNotification(java.lang.String eventType)
          sendNotification
 void sendNotification(java.lang.String eventType, java.lang.Object data)
          sendNotification
 void sendNotification(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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

Constructor Detail

BaseEmitterBean

protected BaseEmitterBean(java.lang.Class<T> mbeanInterface)
                   throws javax.management.NotCompliantMBeanException
BaseEmitterBean

Type Parameters:
T -
Parameters:
mbeanInterface -
Throws:
javax.management.NotCompliantMBeanException
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 -

addNotificationListener

public void addNotificationListener(javax.management.NotificationListener notif,
                                    javax.management.NotificationFilter filter,
                                    java.lang.Object callBack)
Specified by:
addNotificationListener in interface javax.management.NotificationBroadcaster
See Also:
NotificationBroadcaster.addNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object)

getNotificationInfo

public abstract javax.management.MBeanNotificationInfo[] getNotificationInfo()
Specified by:
getNotificationInfo in interface javax.management.NotificationBroadcaster
See Also:
NotificationBroadcaster.getNotificationInfo()

removeNotificationListener

public void removeNotificationListener(javax.management.NotificationListener listener)
                                throws javax.management.ListenerNotFoundException
Specified by:
removeNotificationListener in interface javax.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:
removeNotificationListener in interface javax.management.NotificationEmitter
Throws:
javax.management.ListenerNotFoundException
See Also:
NotificationEmitter.removeNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object)

ehcache

true