public class RelationSetNotificationFilter
extends java.lang.Object
implements javax.management.NotificationFilter
Implementation of the NotificationFilter
interface that filters out all Notifications that do not apply to a specific RelationSet.
Constructor and Description |
---|
RelationSetNotificationFilter(javax.management.ObjectName sourceObjectName,
java.lang.String attributeName,
boolean notifyOfAddedElements,
boolean notifyOfRemovedElements)
Constructs the NotificationFitler with the specified source ObjectName, attribute name and notify of added and/or removed element booleans.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object object)
Compares this RelationSetNotificationFilter to another one.
|
int |
hashCode()
Returns a hash code value for the object.
|
boolean |
isNotificationEnabled(javax.management.Notification notification)
Determines whether the specified notification is enabled by this filter or not.
|
public RelationSetNotificationFilter(javax.management.ObjectName sourceObjectName, java.lang.String attributeName, boolean notifyOfAddedElements, boolean notifyOfRemovedElements)
Constructs the NotificationFitler with the specified source ObjectName, attribute name and notify of added and/or removed element booleans.
sourceObjectName
- The ObjectName of the MBean that RelationSetNotifications should be enabled for.attributeName
- The name of the attribute that RelationSetNotifications should be enabled for.notifyOfAddedElements
- Whether element added notifications should be enabled or not.notifyOfRemovedElements
- Whether element removed notifications should be enabled or not.java.lang.IllegalArgumentException
- If either the sourceObjectName or attributeName arguments are null
.public boolean isNotificationEnabled(javax.management.Notification notification)
Determines whether the specified notification is enabled by this filter or not.
isNotificationEnabled
in interface javax.management.NotificationFilter
true
if the specicified notification is a RelationSetNotification
, the source of the notification was the same as the source ObjectName specified within this filter's constructor, the attribute the notification is for is the same as the attribute specified within the filter's constructor, and the notification type (element added or removed) is compatible with the respective added/removed booleans specified in the filter's constructor. Otherwise false
.
public boolean equals(java.lang.Object object)
Compares this RelationSetNotificationFilter to another one.
equals
in class java.lang.Object
object
- The object to be compared against.true
if the specified object is a RelationSetNotificationFilter and its sourceObjectName
, attributeName
, notifyOfAddedElements
and notifyOfRemovedElements
values are equal to those of this RelationSetNotificationFilter.public int hashCode()
Returns a hash code value for the object.
hashCode
in class java.lang.Object
Please send bug reports and comments to Caplin support