public class RelationSetNotification
extends javax.management.Notification
Represents a change to the state of a RelationSet
. A RelationSetNotification with an ELEMENT_ADDED
type will be emitted if an element has been added to the RelationSet, whilst an ELEMENT_REMOVED
type will be used if an element has been removed. The name of the RelationSet attribute, along with the value and type of the element that has been added or removed, will also be available.
Modifier and Type | Class and Description |
---|---|
static class |
RelationSetNotification.NotificationType
A type safe enumeration representation of the different possible types of RelationSet notifications.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELEMENT_ADDED
Notification type which indicates that an element has been added to the observed
RelationSet attribute. |
static java.lang.String |
ELEMENT_REMOVED
Notification type which indicates that an element has been removed from the observed
RelationSet attribute. |
Constructor and Description |
---|
RelationSetNotification(RelationSetNotification.NotificationType type,
java.lang.Object source,
long sequenceNumber,
java.lang.String message,
java.lang.String attributeName,
java.lang.Object elementValue,
java.lang.String elementType)
Constructs the notification with the required arguments.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttributeName()
Gets the name of the attribute that this notification applies to.
|
java.lang.String |
getElementType()
Gets the fully qualified class name of the object returned by
getElementValue() . |
java.lang.Object |
getElementValue()
Gets the object that represents the element that was added to or removed from the
RelationSet . |
public static final java.lang.String ELEMENT_ADDED
Notification type which indicates that an element has been added to the observed RelationSet
attribute.
The value of this type string is caplin.relationset.element.added
.
public static final java.lang.String ELEMENT_REMOVED
Notification type which indicates that an element has been removed from the observed RelationSet
attribute.
The value of this type string is caplin.relationset.element.removed
.
public RelationSetNotification(RelationSetNotification.NotificationType type, java.lang.Object source, long sequenceNumber, java.lang.String message, java.lang.String attributeName, java.lang.Object elementValue, java.lang.String elementType)
Constructs the notification with the required arguments.
type
- The type of the notification (i.e. element added or removed).source
- The source of the notification. This should be the ObjectName of the MBean that omitted the notification.sequenceNumber
- The notification sequence number within the source object.message
- The detailed message.attributeName
- The name of the attribute that this notification applies to.elementValue
- An object that represents the element that was added to or removed from the RelationSet.elementType
- The fully qualified class name of the object specified for the elementValue
argument.java.lang.IllegalArgumentException
- If the type, source, elementName, elementValue or elementType arguments are null.public java.lang.String getAttributeName()
Gets the name of the attribute that this notification applies to.
public java.lang.Object getElementValue()
Gets the object that represents the element that was added to or removed from the RelationSet
.
public java.lang.String getElementType()
Gets the fully qualified class name of the object returned by getElementValue()
.
getElementValue()
.Please send bug reports and comments to Caplin support