javax.slee.usage
Class UsageUpdatedFilter
java.lang.Object
|
+--javax.slee.usage.UsageUpdatedFilter
- All Implemented Interfaces:
- javax.management.NotificationFilter, java.io.Serializable
- public class UsageUpdatedFilter
- extends java.lang.Object
- implements javax.management.NotificationFilter
A notification filter that only allows through UsageNotification
s where the
Service component identifier, SBB component identifier, and the usage parameter name
match specified values. If the notification contains usage information for some other
Service, SBB, or usage parameter, the notification is suppressed.
Notifications that are not instances of UsageNotification
are suppressed
by this filter.
- See Also:
- Serialized Form
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 |
UsageUpdatedFilter
public UsageUpdatedFilter(ServiceID service,
SbbID sbb,
java.lang.String paramName)
throws java.lang.NullPointerException
- Create a
UsageUpdatedFilter
.
- Parameters:
service
- the component identifier of the Service whose usage parameter
should be monitored.sbb
- the component identifier of the SBB whose usage parameter should be
monitored.paramName
- the name of a usage parameter defined by the SBB.- Throws:
java.lang.NullPointerException
- if service
, sbb
, or
paramName
is null
.
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
UsageNotification
.