1 7 8 package javax.management; 9 10 11 12 34 public class AttributeChangeNotification extends javax.management.Notification { 35 36 37 private static final long serialVersionUID = 535176054565814134L; 38 39 43 public static final String ATTRIBUTE_CHANGE = "jmx.attribute.change"; 44 45 46 49 private String attributeName = null; 50 51 54 private String attributeType = null; 55 56 59 private Object oldValue = null; 60 61 64 private Object newValue = null; 65 66 67 81 public AttributeChangeNotification(Object source, long sequenceNumber, long timeStamp, String msg, 82 String attributeName, String attributeType, Object oldValue, Object newValue) { 83 84 super(AttributeChangeNotification.ATTRIBUTE_CHANGE, source, sequenceNumber, timeStamp, msg); 85 this.attributeName = attributeName; 86 this.attributeType = attributeType; 87 this.oldValue = oldValue; 88 this.newValue = newValue; 89 } 90 91 92 97 public String getAttributeName() { 98 return attributeName; 99 } 100 101 106 public String getAttributeType() { 107 return attributeType; 108 } 109 110 115 public Object getOldValue() { 116 return oldValue; 117 } 118 119 124 public Object getNewValue() { 125 return newValue; 126 } 127 128 } 129 130 131 | Popular Tags |