|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.slee.management.AlarmDuplicateFilter
public class AlarmDuplicateFilter
A notification filter that suppresses equivalent AlarmNotifications
that occur during a specified period of time. Only the first of a series of
equivalent alarm notifications is allowed through this filter. When the
specified period of time elapses after the first notification, the cycle restarts
and a subsequent equivalent alarm notification is allowed through.
Alarm notification equivalence is tested using the AlarmNotification.equals(java.lang.Object)
method.
Notifications that are not instances of AlarmNotification are suppressed
by this filter.
Note: This filter implementation does not use threads to clear stale timeouts.
Instead, stale timeouts are cleared on each invocation of isNotificationEnabled. Methods in this class are also thread-safe.
| Constructor Summary | |
|---|---|
AlarmDuplicateFilter(long period)
Create an AlarmDuplicateFilter. |
|
| 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 |
|---|
public AlarmDuplicateFilter(long period)
AlarmDuplicateFilter.
period - the period (measured in ms) during which duplicate alarm
notifications will be discarded.| Method Detail |
|---|
public boolean isNotificationEnabled(javax.management.Notification notification)
isNotificationEnabled in interface javax.management.NotificationFilternotification - 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||