public class JMXNotificationSupport extends Object implements NotificationListener
JMXNotificationSupport receives JMX notifications and
forwards them to a NotificationOriginator.| Constructor and Description |
|---|
JMXNotificationSupport(org.snmp4j.agent.NotificationOriginator notificationOriginator)
Creates a
JMXNotificationSupport to will use the supplied
NotificationOriginator to send SNMP notifications on behalf
of JMX notifications. |
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.snmp4j.smi.OID notificationID,
MBeanNotificationInfo notificationInfo)
Adds a notification type to this support instance.
|
void |
addAll(Object[][] notificationDefinitions)
Adds all supplied notification types to this support instance.
|
void |
handleNotification(Notification notification,
Object notificationID)
Invoked when a JMX notification occurs, this method sends a SNMP
notification
|
public JMXNotificationSupport(org.snmp4j.agent.NotificationOriginator notificationOriginator)
JMXNotificationSupport to will use the supplied
NotificationOriginator to send SNMP notifications on behalf
of JMX notifications.notificationOriginator - a NotificationOriginator instancepublic void add(org.snmp4j.smi.OID notificationID,
MBeanNotificationInfo notificationInfo)
notificationID - a notification or trap OID.notificationInfo - a MBeanNotificationInfo instance describing the mapping
between JMX and SNMP notification.public void addAll(Object[][] notificationDefinitions)
notificationDefinitions - an array containing zero or more arrays with two elements where the
first is a notification or trap OID and the second element is
a MBeanNotificationInfo instance describing the mapping
between JMX and SNMP notification.public void handleNotification(Notification notification, Object notificationID)
handleNotification in interface NotificationListenernotification - The notification.notificationID - An OID instance which associates the listener with the MBean emitter.
This object is passed to the MBean during the addListener call and
resent, without modification, to the listener.
The MBean object should not use or modify the object.Copyright © 2015 SNMP4J.org. All rights reserved.