org.snmp4j.agent.mo.jmx
Class MBeanNotificationInfo
java.lang.Object
org.snmp4j.agent.mo.jmx.MBeanNotificationInfo
public class MBeanNotificationInfo
- extends java.lang.Object
The 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.
- Version:
- 1.0
- Author:
- Frank Fock
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MBeanNotificationInfo
public MBeanNotificationInfo(MBeanNotificationObjectInfo[] objects,
JMXNotificationIndexSupport indexSupport)
- Creates a notification mapping between a MBean notification to a SNMP
notification. The notification mapping uses the default context.
- Parameters:
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.
MBeanNotificationInfo
public MBeanNotificationInfo(MBeanNotificationObjectInfo[] objects,
JMXNotificationIndexSupport indexSupport,
org.snmp4j.smi.OctetString context)
- Creates a notification mapping between a MBean notification to a SNMP
notification.
- Parameters:
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.
getNotificationPayload
public org.snmp4j.smi.VariableBinding[] getNotificationPayload(java.lang.Object notificationObject)
getContext
public org.snmp4j.smi.OctetString getContext()