org.snmp4j.agent.mo.jmx
Class JMXAttributeNotificationIndexSupport
java.lang.Object
org.snmp4j.agent.mo.jmx.JMXAttributeNotificationIndexSupport
- All Implemented Interfaces:
- JMXNotificationIndexSupport
public class JMXAttributeNotificationIndexSupport
- extends java.lang.Object
- implements JMXNotificationIndexSupport
Notification objects can refer to scalar and tabular data. Whereas for scalar
data the OID of the instance is constant, the index portion of the instance
identifier of tabular data may vary from notification to notification.
The JMXAttributeNotificationIndexSupport provides the index
portion for a notification object by using a JMXIndexSupport
instance. That instance can be shared with the table holding the target
object.
- Version:
- 1.0
- Author:
- Frank Fock
|
Method Summary |
org.snmp4j.smi.OID |
getIndex(int objectIndex)
Gets the index portion for the object with the specified index in the
notification. |
void |
intialize(java.lang.Object notificationUserObject)
Initialize the index support instance with the MBean notification object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JMXAttributeNotificationIndexSupport
public JMXAttributeNotificationIndexSupport(TypedAttribute attribute,
JMXIndexSupport indexSupport)
intialize
public void intialize(java.lang.Object notificationUserObject)
- Description copied from interface:
JMXNotificationIndexSupport
- Initialize the index support instance with the MBean notification object.
- Specified by:
intialize in interface JMXNotificationIndexSupport
- Parameters:
notificationUserObject - an Object that contains or refers to the payload data of the
notification.
getIndex
public org.snmp4j.smi.OID getIndex(int objectIndex)
- Description copied from interface:
JMXNotificationIndexSupport
- Gets the index portion for the object with the specified index in the
notification.
- Specified by:
getIndex in interface JMXNotificationIndexSupport
- Parameters:
objectIndex - a zero based index into the SNMP notification objects.
- Returns:
- OID
a row index for the n-th notification object.