com.adventnet.adaptors.snmp
Class SnmpSupportProvider
java.lang.Object
|
+--com.adventnet.adaptors.snmp.SnmpSupportProvider
- public class SnmpSupportProvider
- extends java.lang.Object
- implements NotificationListener
This class provides SNMP Manageability for
Standard and DynamicMBeans registered with the Adaptor.
This class takes a xml file named mappings.xml
as input.The Standard and Dynamic MBeans are given SNMP Support
without registering them as RequiredModelMBean.
The mappings.xml file has ObjectName mapping details with the file name of the
corresponding xml descriptor.
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
SnmpSupportProvider
public SnmpSupportProvider(SnmpAdaptor adaptor,
MBeanServer server)
SnmpSupportProvider
public SnmpSupportProvider(MBeanServer server,
SnmpAdaptor adaptor,
java.lang.String mappingFileName)
registerObjectNameBasedTable
public void registerObjectNameBasedTable(ModelMBeanInfo mmbeanInfo,
java.lang.String objName)
registerClassNameBasedTable
public void registerClassNameBasedTable(ModelMBeanInfo mmbeanInfo,
java.lang.String className)
registerClassNameBasedScalar
public void registerClassNameBasedScalar(ModelMBeanInfo mmbeanInfo,
java.lang.String className)
registerWithAgent
public void registerWithAgent()
throws java.lang.Exception
- For each entry in the Hashtable modelMBeanInfoHash a
VarBindRequestListenerSupport object is built. This is then
registered with the SnmpAgent by calling the
registerModelMBeanImpl method of the SnmpAdaptor with
parameter as VarBindRequestListenerSupport.
registerClass
public void registerClass(java.lang.String className,
ModelMBeanInfo mmbeanInfo)
register
public void register(java.lang.String objName,
ModelMBeanInfo mmbeanInfo)
handleNotification
public void handleNotification(Notification notification,
java.lang.Object handback)
- Description copied from interface: NotificationListener
- Invoked when a JMX notification occurs. The implementation of this
method should return as soon as possible, to avoid blocking its
notification broadcaster.
- Specified by:
- handleNotification in interface NotificationListener
- Tags copied from interface: NotificationListener
- Parameters:
notification - The notification.handback - An opaque object which helps the listener to associate
information regarding 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.
isTable
public boolean isTable(ModelMBeanInfo minfo)