01: /*
02: * Copyright (C) The MX4J Contributors.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the MX4J License version 1.0.
06: * See the terms of the MX4J License in the documentation provided with this software.
07: */
08:
09: package javax.management;
10:
11: /**
12: * @version $Revision: 1.8 $
13: */
14: public class AttributeChangeNotification extends Notification {
15: private static final long serialVersionUID = 535176054565814134L;
16:
17: public static final String ATTRIBUTE_CHANGE = "jmx.attribute.change";
18:
19: /**
20: * @serial The attribute's name
21: */
22: private final String attributeName;
23: /**
24: * @serial The attribute's type
25: */
26: private final String attributeType;
27: /**
28: * @serial The attribute's old value
29: */
30: private final Object oldValue;
31: /**
32: * @serial The attribute's new value
33: */
34: private final Object newValue;
35:
36: public AttributeChangeNotification(Object source,
37: long sequenceNumber, long timestamp, String message,
38: String attributeName, String attributeType,
39: Object oldValue, Object newValue) {
40: super (ATTRIBUTE_CHANGE, source, sequenceNumber, timestamp,
41: message);
42: this .attributeName = attributeName;
43: this .attributeType = attributeType;
44: this .oldValue = oldValue;
45: this .newValue = newValue;
46: }
47:
48: public String getAttributeName() {
49: return attributeName;
50: }
51:
52: public String getAttributeType() {
53: return attributeType;
54: }
55:
56: public Object getOldValue() {
57: return oldValue;
58: }
59:
60: public Object getNewValue() {
61: return newValue;
62: }
63: }
|