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 Details

    • AbstractNodeForwarding

      public AbstractNodeForwarding(JPPFDriver driver)
      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:
      registerForwardingNotificationListener in interface org.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 - if selector or mBeanName is null.
    • unregisterForwardingNotificationListener

      public void unregisterForwardingNotificationListener(String listenerID) throws ListenerNotFoundException
      Unregister the specified listener.
      Specified by:
      unregisterForwardingNotificationListener in interface org.jppf.management.forwarding.ForwardingNotficationEmitter
      Parameters:
      listenerID - the ID of the listener to unregister.
      Throws:
      ListenerNotFoundException - if the listener could not be found.
    • sendNotification

      public void sendNotification(Notification notification)
      Overrides:
      sendNotification in class NotificationBroadcasterSupport