javax.slee.management
Class AlarmLevelFilter

java.lang.Object
  |
  +--javax.slee.management.AlarmLevelFilter
All Implemented Interfaces:
javax.management.NotificationFilter, java.io.Serializable

public class AlarmLevelFilter
extends java.lang.Object
implements javax.management.NotificationFilter

A notification filter that filters AlarmNotifications based on their alarm level. Only alarm notifications of the specified level or greater are be allowed through this filter.

Notifications that are not instances of AlarmNotification are suppressed by this filter.

See Also:
Serialized Form

Constructor Summary
AlarmLevelFilter(Level minLevel)
          Create an AlarmLevelFilter.
 
Method Summary
 boolean isNotificationEnabled(javax.management.Notification notification)
          Determine whether the specified notification should be delivered to notification listeners using this notification filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AlarmLevelFilter

public AlarmLevelFilter(Level minLevel)
Create an AlarmLevelFilter.
Parameters:
minLevel - this minimum alarm level of alarm notifications allowed through this filter.
Method Detail

isNotificationEnabled

public boolean isNotificationEnabled(javax.management.Notification notification)
Determine whether the specified notification should be delivered to notification listeners using this notification filter.
Specified by:
isNotificationEnabled in interface javax.management.NotificationFilter
Parameters:
notification - the notification to be sent.
Returns:
true if the notification should be delivered to notification listeners, false otherwise. This method always returns false if notification is not an instance of AlarmNotification.