org.apache.qpid.server.exchange
Class AbstractExchange.ExchangeMBean

java.lang.Object
  extended by javax.management.StandardMBean
      extended by org.apache.qpid.server.management.DefaultManagedObject
          extended by org.apache.qpid.server.management.AMQManagedObject
              extended by org.apache.qpid.server.exchange.AbstractExchange.ExchangeMBean
All Implemented Interfaces:
javax.management.DynamicMBean, javax.management.NotificationBroadcaster, ManagedExchange, ManagedObject
Enclosing class:
AbstractExchange

protected abstract class AbstractExchange.ExchangeMBean
extends AMQManagedObject
implements ManagedExchange

Abstract MBean class. This has some of the methods implemented from management intrerface for exchanges. Any implementaion of an Exchange MBean should extend this class.


Field Summary
 
Fields inherited from class org.apache.qpid.server.management.AMQManagedObject
_broadcaster, _mbeanInfo, _notificationSequenceNumber
 
Fields inherited from interface org.apache.qpid.server.exchange.ManagedExchange
TYPE
 
Fields inherited from interface org.apache.qpid.server.management.ManagedObject
DOMAIN
 
Constructor Summary
AbstractExchange.ExchangeMBean()
           
 
Method Summary
 java.lang.String getName()
          Returns the name of the managed exchange.
 java.lang.String getObjectInstanceName()
           
 java.lang.Integer getTicketNo()
           
 boolean isAutoDelete()
          Tells if the exchange is set for autodelete or not.
 boolean isDurable()
          Tells if the exchange is durable or not.
 
Methods inherited from class org.apache.qpid.server.management.AMQManagedObject
addNotificationListener, getMBeanInfo, getNotificationInfo, removeNotificationListener
 
Methods inherited from class org.apache.qpid.server.management.DefaultManagedObject
getManagementInterface, getObjectName, 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, 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.exchange.ManagedExchange
createBinding, viewBindings
 

Constructor Detail

AbstractExchange.ExchangeMBean

public AbstractExchange.ExchangeMBean()
                               throws javax.management.NotCompliantMBeanException
Throws:
javax.management.NotCompliantMBeanException
Method Detail

getObjectInstanceName

public java.lang.String getObjectInstanceName()
Specified by:
getObjectInstanceName in interface ManagedObject
Returns:
the name that uniquely identifies this object instance. It must be unique only among objects of this type at this level in the hierarchy so the uniqueness should not be too difficult to ensure.

getName

public java.lang.String getName()
Description copied from interface: ManagedExchange
Returns the name of the managed exchange.

Specified by:
getName in interface ManagedExchange
Returns:
the name of the exchange.

getTicketNo

public java.lang.Integer getTicketNo()
Specified by:
getTicketNo in interface ManagedExchange

isDurable

public boolean isDurable()
Description copied from interface: ManagedExchange
Tells if the exchange is durable or not.

Specified by:
isDurable in interface ManagedExchange
Returns:
true if the exchange is durable.

isAutoDelete

public boolean isAutoDelete()
Description copied from interface: ManagedExchange
Tells if the exchange is set for autodelete or not.

Specified by:
isAutoDelete in interface ManagedExchange
Returns:
true if the exchange is set as autodelete.