org.apache.qpid.server.management
Class AMQManagedObject

java.lang.Object
  extended by javax.management.StandardMBean
      extended by org.apache.qpid.server.management.DefaultManagedObject
          extended by org.apache.qpid.server.management.AMQManagedObject
All Implemented Interfaces:
DynamicMBean, MBeanRegistration, NotificationBroadcaster, ManagedObject
Direct Known Subclasses:
AbstractExchangeMBean, AMQBrokerManagerMBean, AMQProtocolSessionMBean, AMQQueueMBean, AMQUserManagementMBean, ConfigurationManagementMBean, LoggingManagementMBean, ServerInformationMBean, VirtualHostImpl.VirtualHostMBean

public abstract class AMQManagedObject
extends DefaultManagedObject
implements NotificationBroadcaster

This class provides additinal feature of Notification Broadcaster to the DefaultManagedObject.

Version:
0.1

Field Summary
protected  NotificationBroadcasterSupport _broadcaster
          broadcaster support class
protected  LogActor _logActor
           
protected  MBeanInfo _mbeanInfo
           
protected  long _notificationSequenceNumber
          sequence number for notifications
 
Fields inherited from interface org.apache.qpid.server.management.ManagedObject
DOMAIN
 
Constructor Summary
protected AMQManagedObject(Class<?> managementInterface, String typeName)
           
 
Method Summary
 void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
           
 MBeanInfo getMBeanInfo()
           
 MBeanNotificationInfo[] getNotificationInfo()
           
 void removeNotificationListener(NotificationListener listener)
           
 
Methods inherited from class org.apache.qpid.server.management.DefaultManagedObject
getHierarchicalName, getHierarchicalType, getManagedObjectRegistry, getManagementInterface, getObjectName, getObjectNameForSingleInstanceMBean, getParentObject, getType, jmxEncode, register, toString, unregister
 
Methods inherited from class javax.management.StandardMBean
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, 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, wait, wait, wait
 
Methods inherited from interface org.apache.qpid.server.management.ManagedObject
getObjectInstanceName
 

Field Detail

_broadcaster

protected NotificationBroadcasterSupport _broadcaster
broadcaster support class


_notificationSequenceNumber

protected long _notificationSequenceNumber
sequence number for notifications


_mbeanInfo

protected MBeanInfo _mbeanInfo

_logActor

protected LogActor _logActor
Constructor Detail

AMQManagedObject

protected AMQManagedObject(Class<?> managementInterface,
                           String typeName)
                    throws NotCompliantMBeanException
Throws:
NotCompliantMBeanException
Method Detail

getMBeanInfo

public MBeanInfo getMBeanInfo()
Specified by:
getMBeanInfo in interface DynamicMBean
Overrides:
getMBeanInfo in class StandardMBean

addNotificationListener

public void addNotificationListener(NotificationListener listener,
                                    NotificationFilter filter,
                                    Object handback)
Specified by:
addNotificationListener in interface NotificationBroadcaster

removeNotificationListener

public void removeNotificationListener(NotificationListener listener)
                                throws ListenerNotFoundException
Specified by:
removeNotificationListener in interface NotificationBroadcaster
Throws:
ListenerNotFoundException

getNotificationInfo

public MBeanNotificationInfo[] getNotificationInfo()
Specified by:
getNotificationInfo in interface NotificationBroadcaster


Licensed to the Apache Software Foundation