Package org.jppf.management
Class JPPFNodeConnectionNotifier
java.lang.Object
javax.management.NotificationBroadcasterSupport
org.jppf.management.JPPFNodeConnectionNotifier
- All Implemented Interfaces:
NotificationBroadcaster,NotificationEmitter,org.jppf.management.JPPFNodeConnectionNotifierMBean
public final class JPPFNodeConnectionNotifier
extends NotificationBroadcasterSupport
implements org.jppf.management.JPPFNodeConnectionNotifierMBean
- Since:
- 5.1
- Author:
- Laurent Cohen
-
Field Summary
Fields inherited from interface org.jppf.management.JPPFNodeConnectionNotifierMBean
CONNECTED, DISCONNECTED, MBEAN_NAME -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) static JPPFNodeConnectionNotifierGet the singleton instance of this class.voidonNodeConnected(org.jppf.management.JPPFManagementInfo info) Called when a node is connected to the driver.voidonNodeDisconnected(org.jppf.management.JPPFManagementInfo info) Called when a node is disconnected from the driver.voidvoidremoveNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) Methods inherited from class javax.management.NotificationBroadcasterSupport
getNotificationInfo, handleNotification, sendNotificationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.management.NotificationBroadcaster
getNotificationInfo
-
Method Details
-
onNodeConnected
public void onNodeConnected(org.jppf.management.JPPFManagementInfo info) Called when a node is connected to the driver.- Parameters:
info- information about the connected node.
-
onNodeDisconnected
public void onNodeDisconnected(org.jppf.management.JPPFManagementInfo info) Called when a node is disconnected from the driver.- Parameters:
info- information about the disconnected node.
-
getInstance
Get the singleton instance of this class.- Returns:
- a
JPPFNodeConnectionNotifierobject.
-
addNotificationListener
public void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) - Specified by:
addNotificationListenerin interfaceNotificationBroadcaster- Overrides:
addNotificationListenerin classNotificationBroadcasterSupport
-
removeNotificationListener
public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException - Specified by:
removeNotificationListenerin interfaceNotificationBroadcaster- Overrides:
removeNotificationListenerin classNotificationBroadcasterSupport- Throws:
ListenerNotFoundException
-
removeNotificationListener
public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException - Specified by:
removeNotificationListenerin interfaceNotificationEmitter- Overrides:
removeNotificationListenerin classNotificationBroadcasterSupport- Throws:
ListenerNotFoundException
-