org.apache.qpid.management.wsdm
Class QEmu

java.lang.Object
  extended by javax.management.NotificationBroadcasterSupport
      extended by org.apache.qpid.management.wsdm.QEmu
All Implemented Interfaces:
MBeanRegistration, NotificationBroadcaster, NotificationEmitter, QEmuMBean

public class QEmu
extends NotificationBroadcasterSupport
implements QEmuMBean, MBeanRegistration

QEmu is basically an instance creator that is installed separately as part of QMan test cases & examples. Reason for that is to emulate object creation (queues, exchanges, etc...) without having Qpid broker connected and therefore controlling the total number of the instances that are created.


Constructor Summary
QEmu()
           
 
Method Summary
 void createQueue(ObjectName objectName)
          Creates and registers a Queue MBean with MBeanServer.
 void postDeregister()
          Not implemented for this class.
 void postRegister(Boolean registrationDone)
          Not implemented for this class.
 void preDeregister()
          Not implemented for this class.
 ObjectName preRegister(MBeanServer server, ObjectName name)
          MBean server callback.
 void unregister(ObjectName objectName)
          Unregisters a Queue MBean with MBeanServer.
 
Methods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QEmu

public QEmu()
Method Detail

unregister

public void unregister(ObjectName objectName)
                throws Exception
Unregisters a Queue MBean with MBeanServer.

Specified by:
unregister in interface QEmuMBean
Parameters:
objectName - the name of the MBean that must unregistered.
Throws:
Exception - when the creation or the registration fails.

createQueue

public void createQueue(ObjectName objectName)
                 throws Exception
Creates and registers a Queue MBean with MBeanServer.

Specified by:
createQueue in interface QEmuMBean
Parameters:
objectName - the name of the queue MBean.
Throws:
Exception - when the creation or the registration fails.

postDeregister

public void postDeregister()
Not implemented for this class.

Specified by:
postDeregister in interface MBeanRegistration

postRegister

public void postRegister(Boolean registrationDone)
Not implemented for this class.

Specified by:
postRegister in interface MBeanRegistration

preDeregister

public void preDeregister()
Not implemented for this class.

Specified by:
preDeregister in interface MBeanRegistration

preRegister

public ObjectName preRegister(MBeanServer server,
                              ObjectName name)
MBean server callback. Stores the value of the owner MBeanServer.

Specified by:
preRegister in interface MBeanRegistration


Licensed to the Apache Software Foundation