1 23 24 29 30 package com.sun.appserv.management.event; 31 32 33 import javax.management.ObjectName ; 36 37 77 public class StatisticMonitorNotification extends javax.management.Notification { 78 79 80 85 86 91 public static final String OBSERVED_OBJECT_ERROR = "jmx.monitor.error.mbean"; 92 93 98 public static final String OBSERVED_ATTRIBUTE_ERROR = "jmx.monitor.error.attribute"; 99 100 105 public static final String OBSERVED_ATTRIBUTE_TYPE_ERROR = "jmx.monitor.error.type"; 106 107 112 public static final String THRESHOLD_ERROR = "jmx.monitor.error.threshold"; 113 114 119 public static final String RUNTIME_ERROR = "jmx.monitor.error.runtime"; 120 121 126 public static final String THRESHOLD_VALUE_EXCEEDED = "jmx.monitor.counter.threshold"; 127 128 133 public static final String THRESHOLD_HIGH_VALUE_EXCEEDED = "jmx.monitor.gauge.high"; 134 135 140 public static final String THRESHOLD_LOW_VALUE_EXCEEDED = "jmx.monitor.gauge.low"; 141 142 147 public static final String STRING_TO_COMPARE_VALUE_MATCHED = "jmx.monitor.string.matches"; 148 149 154 public static final String STRING_TO_COMPARE_VALUE_DIFFERED = "jmx.monitor.string.differs"; 155 156 157 162 163 164 private static final long serialVersionUID = -4608189663661929204L; 165 166 169 private ObjectName observedObject = null; 170 171 174 private String observedAttribute = null; 175 176 179 private Object derivedGauge = null; 180 181 186 private Object trigger = null; 187 188 189 194 195 208 public StatisticMonitorNotification(String type, Object source, long sequenceNumber, long timeStamp, String msg, 209 ObjectName obsObj, String obsAtt, Object derGauge, Object trigger) { 210 211 super(type, source, sequenceNumber, timeStamp, msg); 212 this.observedObject = obsObj; 213 this.observedAttribute = obsAtt; 214 this.derivedGauge = derGauge; 215 this.trigger = trigger; 216 } 217 218 223 224 227 232 public ObjectName getObservedObject() { 233 return observedObject; 234 } 235 236 241 public String getObservedAttribute() { 242 return observedAttribute; 243 } 244 245 250 public Object getDerivedGauge() { 251 return derivedGauge; 252 } 253 254 259 public Object getTrigger() { 260 return trigger; 261 } 262 263 } 264 | Popular Tags |