Class 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
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected BaseEmitterBean​(java.lang.Class<T> mbeanInterface)
      BaseEmitterBean
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void addNotificationListener​(javax.management.NotificationListener notif, javax.management.NotificationFilter filter, java.lang.Object callBack)  
      void dispose()
      Dispose of this SampledCacheManager and clean up held resources
      protected abstract void doDispose()
      Dispose callback of subclasses
      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
    • 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 -
      • 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:
        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)