javax.slee.management
Class AlarmLevelFilter

java.lang.Object
  extended by javax.slee.management.AlarmLevelFilter
All Implemented Interfaces:
java.io.Serializable, javax.management.NotificationFilter

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(AlarmLevel minLevel)
          Create an AlarmLevelFilter.
AlarmLevelFilter(Level minLevel)
          Deprecated. Replaced with AlarmLevelFilter(AlarmLevel) as trace and alarm levels have been split into different classes.
 
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)
Deprecated. Replaced with AlarmLevelFilter(AlarmLevel) as trace and alarm levels have been split into different classes.

Create an AlarmLevelFilter. A filter created using this constructor will only allow SLEE 1.0-compliant alarm notifications to pass through where they otherwise satisfy the filtering criteria.

Parameters:
minLevel - this minimum alarm level of alarm notifications allowed through this filter.

AlarmLevelFilter

public AlarmLevelFilter(AlarmLevel minLevel)
Create an AlarmLevelFilter. A filter created using this constructor will only allow SLEE 1.1-compliant alarm notifications to pass through where they otherwise satisfy the filtering criteria.

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.


Copyright © 2008. All Rights Reserved.