public class MBeanNotificationInfo extends Object
MBeanNotificationInfo class represents information for
a MBean notification to SNMP notification type mapping. Since MBean
notifications contain payload information that does not include information
about the payload's structural source. As a consequence, the payload cannot
always be mapped to a SNMP notification without additional information about
table indexing. This information is provided by a
JMXNotificationIndexSupport instance then.| Constructor and Description |
|---|
MBeanNotificationInfo(MBeanNotificationObjectInfo[] objects,
JMXNotificationIndexSupport indexSupport)
Creates a notification mapping between a MBean notification to a SNMP
notification.
|
MBeanNotificationInfo(MBeanNotificationObjectInfo[] objects,
JMXNotificationIndexSupport indexSupport,
org.snmp4j.smi.OctetString context)
Creates a notification mapping between a MBean notification to a SNMP
notification.
|
| Modifier and Type | Method and Description |
|---|---|
org.snmp4j.smi.OctetString |
getContext() |
org.snmp4j.smi.VariableBinding[] |
getNotificationPayload(Object notificationObject) |
public MBeanNotificationInfo(MBeanNotificationObjectInfo[] objects, JMXNotificationIndexSupport indexSupport)
objects - the mappings of the SNMP notification payload to MBean attributes.indexSupport - the index support instance that provides indexes for the notification
payload object OIDs where necessary.public MBeanNotificationInfo(MBeanNotificationObjectInfo[] objects, JMXNotificationIndexSupport indexSupport, org.snmp4j.smi.OctetString context)
objects - the mappings of the SNMP notification payload to MBean attributes.indexSupport - the index support instance that provides indexes for the notification
payload object OIDs where necessary.context - the context of the notification. Default is a zero length string.public org.snmp4j.smi.VariableBinding[] getNotificationPayload(Object notificationObject)
public org.snmp4j.smi.OctetString getContext()
Copyright © 2015 SNMP4J.org. All rights reserved.