public class AlarmLevelFilter extends Object implements NotificationFilter
AlarmNotification
s 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.
Constructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
boolean |
isNotificationEnabled(Notification notification)
Determine whether the specified notification should be delivered to notification
listeners using this notification filter.
|
public AlarmLevelFilter(Level minLevel)
AlarmLevelFilter(AlarmLevel)
as trace and alarm
levels have been split into different classes.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.minLevel
- this minimum alarm level of alarm notifications allowed through
this filter.public AlarmLevelFilter(AlarmLevel minLevel)
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.minLevel
- this minimum alarm level of alarm notifications allowed through this filter.public boolean isNotificationEnabled(Notification notification)
isNotificationEnabled
in interface NotificationFilter
notification
- the notification to be sent.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
.