MySnmpCrawler API

snmp.mbean.listener
Class DefaultMBeanListener

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

public class DefaultMBeanListener
extends MBeanListener

This class receives the AttributeChangeNotification, MBeanServerNotification, MonitorNotification, RelationNotification, TimerAlarmClockNotification, TimerNotification, and TraceNotification objects. The subclass can override the appropriate methods to receive the notifications.

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

Constructor Summary
DefaultMBeanListener()
          The default constructorr.
 
Method Summary
 void handleAttributeChangeNotification(javax.management.AttributeChangeNotification notification)
          Handles attribute change notification.
 void handleMBeanServerNotification(javax.management.MBeanServerNotification notification)
          Handles MBeanServer notification.
 void handleMonitorNotification(javax.management.monitor.MonitorNotification notification)
          Handles Monitor notification.
 void handleNotification(javax.management.Notification notification, java.lang.Object handback)
          Receives the MBean related notification.
 void handleRelationNotification(javax.management.relation.RelationNotification notification)
          Handles Relation notification.
 void handleTimerAlarmClockNotification(javax.management.timer.TimerAlarmClockNotification notification)
          Handles TimerAlarmClock notification.
 void handleTimerNotification(javax.management.timer.TimerNotification notification)
          Handles Timer notification.
 void handleTraceNotification(com.sun.jdmk.TraceNotification notification)
          Handles Trace notification.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMBeanListener

public DefaultMBeanListener()
The default constructorr.

Method Detail

handleNotification

public void handleNotification(javax.management.Notification notification,
                               java.lang.Object handback)
Receives the MBean related notification. The notification is forwarded to the appropriate method for further handling.

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

handleAttributeChangeNotification

public void handleAttributeChangeNotification(javax.management.AttributeChangeNotification notification)
Handles attribute change notification.

Parameters:
notification - The notification.

handleMBeanServerNotification

public void handleMBeanServerNotification(javax.management.MBeanServerNotification notification)
Handles MBeanServer notification.

Parameters:
notification - The notification.

handleMonitorNotification

public void handleMonitorNotification(javax.management.monitor.MonitorNotification notification)
Handles Monitor notification.

Parameters:
notification - The notification.

handleRelationNotification

public void handleRelationNotification(javax.management.relation.RelationNotification notification)
Handles Relation notification.

Parameters:
notification - The notification.

handleTimerAlarmClockNotification

public void handleTimerAlarmClockNotification(javax.management.timer.TimerAlarmClockNotification notification)
Handles TimerAlarmClock notification.

Parameters:
notification - The notification.

handleTimerNotification

public void handleTimerNotification(javax.management.timer.TimerNotification notification)
Handles Timer notification.

Parameters:
notification - The notification.

handleTraceNotification

public void handleTraceNotification(com.sun.jdmk.TraceNotification notification)
Handles Trace notification.

Parameters:
notification - The notification.

MySnmpCrawler API