2362N/A * Copyright (c) 1999, 2007, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * Provides definitions of the notifications sent by monitor MBeans. 0N/A * The notification source and a set of parameters concerning the monitor MBean's state 0N/A * need to be specified when creating a new object of this class. 0N/A * The list of notifications fired by the monitor MBeans is the following: 0N/A * <LI>Common to all kind of monitors: 0N/A * <LI>The observed object is not registered in the MBean server. 0N/A * <LI>The observed attribute is not contained in the observed object. 0N/A * <LI>The type of the observed attribute is not correct. 0N/A * <LI>Any exception (except the cases described above) occurs when trying to get the value of the observed attribute. 0N/A * <LI>Common to the counter and the gauge monitors: 0N/A * <LI>The threshold high or threshold low are not of the same type as the gauge (gauge monitors). 0N/A * <LI>The threshold or the offset or the modulus are not of the same type as the counter (counter monitors). 0N/A * <LI>Counter monitors only: 0N/A * <LI>The observed attribute has reached the threshold value. 0N/A * <LI>Gauge monitors only: 0N/A * <LI>The observed attribute has exceeded the threshold high value. 0N/A * <LI>The observed attribute has exceeded the threshold low value. 0N/A * <LI>String monitors only: 0N/A * <LI>The observed attribute has matched the "string to compare" value. 0N/A * <LI>The observed attribute has differed from the "string to compare" value. 0N/A * ------------------------------------------ 0N/A * ------------------------------------------ 0N/A * Notification type denoting that the observed object is not registered in the MBean server. 0N/A * This notification is fired by all kinds of monitors. 0N/A * <BR>The value of this notification type is <CODE>jmx.monitor.error.mbean</CODE>. 0N/A * Notification type denoting that the observed attribute is not contained in the observed object. 0N/A * This notification is fired by all kinds of monitors. 0N/A * <BR>The value of this notification type is <CODE>jmx.monitor.error.attribute</CODE>. 0N/A * Notification type denoting that the type of the observed attribute is not correct. 0N/A * This notification is fired by all kinds of monitors. 0N/A * <BR>The value of this notification type is <CODE>jmx.monitor.error.type</CODE>. 0N/A * Notification type denoting that the type of the thresholds, offset or modulus is not correct. 0N/A * This notification is fired by counter and gauge monitors. 0N/A * <BR>The value of this notification type is <CODE>jmx.monitor.error.threshold</CODE>. 0N/A * Notification type denoting that a non-predefined error type has occurred when trying to get the value of the observed attribute. 0N/A * This notification is fired by all kinds of monitors. 0N/A * <BR>The value of this notification type is <CODE>jmx.monitor.error.runtime</CODE>. 0N/A * Notification type denoting that the observed attribute has reached the threshold value. 0N/A * This notification is only fired by counter monitors. 0N/A * <BR>The value of this notification type is <CODE>jmx.monitor.counter.threshold</CODE>. 0N/A * Notification type denoting that the observed attribute has exceeded the threshold high value. 0N/A * This notification is only fired by gauge monitors. 0N/A * <BR>The value of this notification type is <CODE>jmx.monitor.gauge.high</CODE>. 0N/A * Notification type denoting that the observed attribute has exceeded the threshold low value. 0N/A * This notification is only fired by gauge monitors. 0N/A * <BR>The value of this notification type is <CODE>jmx.monitor.gauge.low</CODE>. 0N/A * Notification type denoting that the observed attribute has matched the "string to compare" value. 0N/A * This notification is only fired by string monitors. 0N/A * <BR>The value of this notification type is <CODE>jmx.monitor.string.matches</CODE>. 0N/A * Notification type denoting that the observed attribute has differed from the "string to compare" value. 0N/A * This notification is only fired by string monitors. 0N/A * ------------------------------------------ 0N/A * ------------------------------------------ 0N/A /* Serial version */ 0N/A * @serial Monitor notification observed object. 0N/A * @serial Monitor notification observed attribute. 0N/A * @serial Monitor notification derived gauge. 0N/A * @serial Monitor notification release mechanism. 0N/A * monitor type) that triggered off this notification. 0N/A * ------------------------------------------ 0N/A * ------------------------------------------ 0N/A * Creates a monitor notification object. 0N/A * @param type The notification type. 0N/A * @param source The notification producer. 0N/A * @param sequenceNumber The notification sequence number within the source object. 0N/A * @param timeStamp The notification emission date. 0N/A * @param msg The notification message. 0N/A * @param obsObj The object observed by the producer of this notification. 0N/A * @param obsAtt The attribute observed by the producer of this notification. 0N/A * @param derGauge The derived gauge. 0N/A * @param trigger The threshold/string (depending on the monitor type) that triggered the notification. 0N/A * ------------------------------------------ 0N/A * ------------------------------------------ 0N/A // GETTERS AND SETTERS 0N/A //-------------------- 0N/A * Gets the observed object of this monitor notification. 0N/A * @return The observed object. 0N/A * Gets the observed attribute of this monitor notification. 0N/A * @return The observed attribute. 0N/A * Gets the derived gauge of this monitor notification. 0N/A * @return The derived gauge. 0N/A * Gets the threshold/string (depending on the monitor type) that triggered off this monitor notification. 0N/A * @return The trigger.