Package org.jppf.management.forwarding
Class AbstractNodeForwarding
java.lang.Object
javax.management.NotificationBroadcasterSupport
org.jppf.management.forwarding.AbstractNodeForwarding
- All Implemented Interfaces:
NotificationBroadcaster,NotificationEmitter,org.jppf.management.forwarding.ForwardingNotficationEmitter
- Direct Known Subclasses:
JPPFNodeForwarding,NodeForwarding
public abstract class AbstractNodeForwarding
extends NotificationBroadcasterSupport
implements org.jppf.management.forwarding.ForwardingNotficationEmitter
Implementation of the
JPPFNodeForwardingMBean interface.- Author:
- Laurent Cohen
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractNodeForwarding(JPPFDriver driver) Initialize this MBean implementation. -
Method Summary
Modifier and TypeMethodDescriptionregisterForwardingNotificationListener(org.jppf.management.NodeSelector selector, String mBeanName) Register a listener with the specified node selector and MBean.voidsendNotification(Notification notification) voidunregisterForwardingNotificationListener(String listenerID) Unregister the specified listener.Methods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener
-
Constructor Details
-
AbstractNodeForwarding
Initialize this MBean implementation.- Parameters:
driver- reference to the JPPF driver.
-
-
Method Details
-
registerForwardingNotificationListener
public String registerForwardingNotificationListener(org.jppf.management.NodeSelector selector, String mBeanName) throws IllegalArgumentException Register a listener with the specified node selector and MBean.- Specified by:
registerForwardingNotificationListenerin interfaceorg.jppf.management.forwarding.ForwardingNotficationEmitter- Parameters:
selector- the node slector to apply to the listener.mBeanName- the name of the node mbeans to receive notifications from.- Returns:
- a unique id for the listener.
- Throws:
IllegalArgumentException- ifselectorormBeanNameis null.
-
unregisterForwardingNotificationListener
public void unregisterForwardingNotificationListener(String listenerID) throws ListenerNotFoundException Unregister the specified listener.- Specified by:
unregisterForwardingNotificationListenerin interfaceorg.jppf.management.forwarding.ForwardingNotficationEmitter- Parameters:
listenerID- the ID of the listener to unregister.- Throws:
ListenerNotFoundException- if the listener could not be found.
-
sendNotification
- Overrides:
sendNotificationin classNotificationBroadcasterSupport
-