javax.slee.management
Class TraceLevelFilter

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

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

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

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

See Also:
Serialized Form

Constructor Summary
TraceLevelFilter(Level minLevel)
          Create a TraceLevelFilter.
 
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

TraceLevelFilter

public TraceLevelFilter(Level minLevel)
Create a TraceLevelFilter.
Parameters:
minLevel - this minimum trace level of trace 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 TraceNotification.