org.jboss.test.jmx.compliance.server.support
Class EmitterInvocationHandlerTest
java.lang.Object
org.jboss.test.jmx.compliance.server.support.InvocationHandlerTest
org.jboss.test.jmx.compliance.server.support.EmitterInvocationHandlerTest
- All Implemented Interfaces:
- InvocationHandlerTestMBean, javax.management.NotificationBroadcaster, javax.management.NotificationEmitter
- public class EmitterInvocationHandlerTest
- extends InvocationHandlerTest
- implements javax.management.NotificationEmitter
- Version:
- $Revision: 1.1 $
- Author:
- Adrian Brock.
Method Summary |
void |
addNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
Object handback)
Add a listener to an MBean. |
javax.management.MBeanNotificationInfo[] |
getNotificationInfo()
Returns the notification metadata associated with the MBean. |
void |
removeNotificationListener(javax.management.NotificationListener listener)
Removes a listener from an MBean. |
void |
removeNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
Object handback)
Removes a listener from the Emitter. |
void |
sendNotification()
|
Methods inherited from class org.jboss.test.jmx.compliance.server.support.InvocationHandlerTest |
getAttribute, getType, invoke, invokeMixedParameters, invokeNoArgs, invokeNoArgsNoReturn, invokeNoReturn, isIsPrimitive, setAttribute, setIsPrimitive, setType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EmitterInvocationHandlerTest
public EmitterInvocationHandlerTest()
addNotificationListener
public void addNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
Object handback)
- Description copied from interface:
javax.management.NotificationBroadcaster
- Add a listener to an MBean.
- Specified by:
addNotificationListener
in interface javax.management.NotificationBroadcaster
- Parameters:
listener
- implementation of the listener objectfilter
- implementation of the filter object or null
if no filtering is requiredhandback
- A handback object associated with each notification
sent by this notification broadcaster.
getNotificationInfo
public javax.management.MBeanNotificationInfo[] getNotificationInfo()
- Description copied from interface:
javax.management.NotificationBroadcaster
- Returns the notification metadata associated with the MBean.
- Specified by:
getNotificationInfo
in interface javax.management.NotificationBroadcaster
- Returns:
- MBean's notification metadata
- See Also:
MBeanNotificationInfo
removeNotificationListener
public void removeNotificationListener(javax.management.NotificationListener listener)
throws javax.management.ListenerNotFoundException
- Description copied from interface:
javax.management.NotificationBroadcaster
- Removes a listener from an MBean.
- Specified by:
removeNotificationListener
in interface javax.management.NotificationBroadcaster
- Parameters:
listener
- the listener object to remove
- Throws:
javax.management.ListenerNotFoundException
- if the listener was not found
removeNotificationListener
public void removeNotificationListener(javax.management.NotificationListener listener,
javax.management.NotificationFilter filter,
Object handback)
throws javax.management.ListenerNotFoundException
- Description copied from interface:
javax.management.NotificationEmitter
- Removes a listener from the Emitter.
Only the listener, filter, handback triplet is removed
- Specified by:
removeNotificationListener
in interface javax.management.NotificationEmitter
- Parameters:
listener
- the listener object to removefilter
- the filter registered with the listenerhandback
- the handback object associated with the registered listener
- Throws:
javax.management.ListenerNotFoundException
- if the listener was not found
sendNotification
public void sendNotification()
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.