com.adventnet.adaptors.tl1
Class TL1MultiProtocolHandler

java.lang.Object
  extended by com.adventnet.adaptors.tl1.TL1MultiProtocolHandler
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, javax.management.NotificationFilter, javax.management.NotificationListener

public class TL1MultiProtocolHandler
extends java.lang.Object
implements javax.management.NotificationFilter, javax.management.NotificationListener

This class implements the Notification listener and Notification filter. This is used in accessig multi protocol notification handling. The method handleNotification will be called whenever notification comes.

See Also:
Serialized Form

Constructor Summary
TL1MultiProtocolHandler(javax.management.MBeanServer mbeanServer, com.adventnet.agent.tl1.TL1Agent agent)
          Constructor for TL1NotificationHandler receives the MBeanServer instance.
 
Method Summary
 void disableAllTypes()
           
 void disableType(java.lang.String prefix)
           
 void enableType(java.lang.String prefix)
           
 java.util.Vector getEnabledTypes()
           
 void handleNotification(javax.management.Notification notification, java.lang.Object handback)
          This method will be called whenever any notification comes.
 boolean isNotificationEnabled(javax.management.Notification notification)
           
(package private)  void setAgentReference(com.adventnet.agent.tl1.TL1Agent agent)
          Used to set the agent reference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TL1MultiProtocolHandler

public TL1MultiProtocolHandler(javax.management.MBeanServer mbeanServer,
                               com.adventnet.agent.tl1.TL1Agent agent)
Constructor for TL1NotificationHandler receives the MBeanServer instance. Using this MBeanServer instance all the mbeans are queired and added for receiving the notifications.

Parameters:
mbeanServer - - MBeanServer instance.
Method Detail

setAgentReference

void setAgentReference(com.adventnet.agent.tl1.TL1Agent agent)
Used to set the agent reference.

Parameters:
agent - - TL1Agent reference.

handleNotification

public void handleNotification(javax.management.Notification notification,
                               java.lang.Object handback)
This method will be called whenever any notification comes.

Specified by:
handleNotification in interface javax.management.NotificationListener

isNotificationEnabled

public boolean isNotificationEnabled(javax.management.Notification notification)
Specified by:
isNotificationEnabled in interface javax.management.NotificationFilter

disableAllTypes

public void disableAllTypes()

disableType

public void disableType(java.lang.String prefix)

enableType

public void enableType(java.lang.String prefix)

getEnabledTypes

public java.util.Vector getEnabledTypes()