MySnmpCrawler API

snmp.mbean.listener
Class MBeanListener

java.lang.Object
  |
  +--snmp.mbean.listener.MBeanListener
All Implemented Interfaces:
java.util.EventListener, javax.management.NotificationListener
Direct Known Subclasses:
DefaultMBeanListener

public abstract class MBeanListener
extends java.lang.Object
implements javax.management.NotificationListener

The MBeanListener objects will receive MBean related notifications. The listener subclass can either extends from this class and overrides the handleNotification method or extends from DefaultMBeanListener class that already diverted the different types of notifications to the appropriate methods.

Version:
$Revision: 0.1 $ $Date: 2004/03/09 06:03:53 $
Author:
Scott Cheng

Constructor Summary
MBeanListener()
          The default constructorr.
 
Method Summary
abstract  void handleNotification(javax.management.Notification notification, java.lang.Object handback)
          Receives MBean related notifications.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBeanListener

public MBeanListener()
The default constructorr.

Method Detail

handleNotification

public abstract void handleNotification(javax.management.Notification notification,
                                        java.lang.Object handback)
Receives MBean related notifications.

Specified by:
handleNotification in interface javax.management.NotificationListener
Parameters:
notification - The received notification.
handback - An opaque object which helps the listener to associate information regarding the MBean emitter.

MySnmpCrawler API