1 7 8 package javax.management.monitor; 9 10 11 import javax.management.ObjectName ; 14 15 57 public class MonitorNotification extends javax.management.Notification { 58 59 60 65 66 71 public static final String OBSERVED_OBJECT_ERROR = "jmx.monitor.error.mbean"; 72 73 78 public static final String OBSERVED_ATTRIBUTE_ERROR = "jmx.monitor.error.attribute"; 79 80 85 public static final String OBSERVED_ATTRIBUTE_TYPE_ERROR = "jmx.monitor.error.type"; 86 87 92 public static final String THRESHOLD_ERROR = "jmx.monitor.error.threshold"; 93 94 99 public static final String RUNTIME_ERROR = "jmx.monitor.error.runtime"; 100 101 106 public static final String THRESHOLD_VALUE_EXCEEDED = "jmx.monitor.counter.threshold"; 107 108 113 public static final String THRESHOLD_HIGH_VALUE_EXCEEDED = "jmx.monitor.gauge.high"; 114 115 120 public static final String THRESHOLD_LOW_VALUE_EXCEEDED = "jmx.monitor.gauge.low"; 121 122 127 public static final String STRING_TO_COMPARE_VALUE_MATCHED = "jmx.monitor.string.matches"; 128 129 134 public static final String STRING_TO_COMPARE_VALUE_DIFFERED = "jmx.monitor.string.differs"; 135 136 137 142 143 144 private static final long serialVersionUID = -4608189663661929204L; 145 146 149 private ObjectName observedObject = null; 150 151 154 private String observedAttribute = null; 155 156 159 private Object derivedGauge = null; 160 161 166 private Object trigger = null; 167 168 169 174 175 188 MonitorNotification(String type, Object source, long sequenceNumber, long timeStamp, String msg, 189 ObjectName obsObj, String obsAtt, Object derGauge, Object trigger) { 190 191 super(type, source, sequenceNumber, timeStamp, msg); 192 this.observedObject = obsObj; 193 this.observedAttribute = obsAtt; 194 this.derivedGauge = derGauge; 195 this.trigger = trigger; 196 } 197 198 203 204 207 212 public ObjectName getObservedObject() { 213 return observedObject; 214 } 215 216 221 public String getObservedAttribute() { 222 return observedAttribute; 223 } 224 225 230 public Object getDerivedGauge() { 231 return derivedGauge; 232 } 233 234 239 public Object getTrigger() { 240 return trigger; 241 } 242 243 } 244 | Popular Tags |