com.adventnet.adaptors.tl1
Class TL1MultiProtocolHandler
java.lang.Object
|
+--com.adventnet.adaptors.tl1.TL1MultiProtocolHandler
- public class TL1MultiProtocolHandler
- extends java.lang.Object
- implements NotificationFilter, 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(MBeanServer mbeanServer,
com.adventnet.agent.tl1.TL1Agent agent)
Constructor for TL1NotificationHandler receives the MBeanServer
instance. |
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
TL1MultiProtocolHandler
public TL1MultiProtocolHandler(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.
setAgentReference
void setAgentReference(com.adventnet.agent.tl1.TL1Agent agent)
- Used to set the agent reference.
- Parameters:
agent - - TL1Agent reference.
handleNotification
public void handleNotification(Notification notification,
java.lang.Object handback)
- This method will be called whenever any notification comes.
- 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.
isNotificationEnabled
public boolean isNotificationEnabled(Notification notification)
- Description copied from interface: NotificationFilter
- Invoked before sending the specified notification to the listener.
- Specified by:
- isNotificationEnabled in interface NotificationFilter
- Tags copied from interface: NotificationFilter
- Parameters:
notification - The notification to be sent.- Returns:
true if the notification has to be sent to
the listener, false otherwise.
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()