|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.management.NotificationBroadcasterSupport
org.apache.qpid.management.wsdm.QEmu
public class QEmu
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 |
---|
public QEmu()
Method Detail |
---|
public void unregister(ObjectName objectName) throws Exception
unregister
in interface QEmuMBean
objectName
- the name of the MBean that must unregistered.
Exception
- when the creation or the registration fails.public void createQueue(ObjectName objectName) throws Exception
createQueue
in interface QEmuMBean
objectName
- the name of the queue MBean.
Exception
- when the creation or the registration fails.public void postDeregister()
postDeregister
in interface MBeanRegistration
public void postRegister(Boolean registrationDone)
postRegister
in interface MBeanRegistration
public void preDeregister()
preDeregister
in interface MBeanRegistration
public ObjectName preRegister(MBeanServer server, ObjectName name)
preRegister
in interface MBeanRegistration
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |