< prev index next >

src/java.management/share/classes/javax/management/monitor/MonitorNotification.java

Print this page


   1 /*
   2  * Copyright (c) 1999, 2007, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


 145     /**
 146      * Notification type denoting that the observed attribute has differed from the "string to compare" value.
 147      * This notification is only fired by string monitors.
 148      * <BR>The value of this notification type is <CODE>jmx.monitor.string.differs</CODE>.
 149      */
 150     public static final String STRING_TO_COMPARE_VALUE_DIFFERED = "jmx.monitor.string.differs";
 151 
 152 
 153     /*
 154      * ------------------------------------------
 155      *  PRIVATE VARIABLES
 156      * ------------------------------------------
 157      */
 158 
 159     /* Serial version */
 160     private static final long serialVersionUID = -4608189663661929204L;
 161 
 162     /**
 163      * @serial Monitor notification observed object.
 164      */

 165     private ObjectName observedObject = null;
 166 
 167     /**
 168      * @serial Monitor notification observed attribute.
 169      */
 170     private String observedAttribute = null;
 171 
 172     /**
 173      * @serial Monitor notification derived gauge.
 174      */

 175     private Object derivedGauge = null;
 176 
 177     /**
 178      * @serial Monitor notification release mechanism.
 179      *         This value is used to keep the threshold/string (depending on the
 180      *         monitor type) that triggered off this notification.
 181      */

 182     private Object trigger = null;
 183 
 184 
 185     /*
 186      * ------------------------------------------
 187      *  CONSTRUCTORS
 188      * ------------------------------------------
 189      */
 190 
 191     /**
 192      * Creates a monitor notification object.
 193      *
 194      * @param type The notification type.
 195      * @param source The notification producer.
 196      * @param sequenceNumber The notification sequence number within the source object.
 197      * @param timeStamp The notification emission date.
 198      * @param msg The notification message.
 199      * @param obsObj The object observed by the producer of this notification.
 200      * @param obsAtt The attribute observed by the producer of this notification.
 201      * @param derGauge The derived gauge.


   1 /*
   2  * Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.  Oracle designates this
   8  * particular file as subject to the "Classpath" exception as provided
   9  * by Oracle in the LICENSE file that accompanied this code.
  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any


 145     /**
 146      * Notification type denoting that the observed attribute has differed from the "string to compare" value.
 147      * This notification is only fired by string monitors.
 148      * <BR>The value of this notification type is <CODE>jmx.monitor.string.differs</CODE>.
 149      */
 150     public static final String STRING_TO_COMPARE_VALUE_DIFFERED = "jmx.monitor.string.differs";
 151 
 152 
 153     /*
 154      * ------------------------------------------
 155      *  PRIVATE VARIABLES
 156      * ------------------------------------------
 157      */
 158 
 159     /* Serial version */
 160     private static final long serialVersionUID = -4608189663661929204L;
 161 
 162     /**
 163      * @serial Monitor notification observed object.
 164      */
 165     @SuppressWarnings("serial") // Not statically typed as Serializable
 166     private ObjectName observedObject = null;
 167 
 168     /**
 169      * @serial Monitor notification observed attribute.
 170      */
 171     private String observedAttribute = null;
 172 
 173     /**
 174      * @serial Monitor notification derived gauge.
 175      */
 176     @SuppressWarnings("serial") // Not statically typed as Serializable
 177     private Object derivedGauge = null;
 178 
 179     /**
 180      * @serial Monitor notification release mechanism.
 181      *         This value is used to keep the threshold/string (depending on the
 182      *         monitor type) that triggered off this notification.
 183      */
 184     @SuppressWarnings("serial") // Not statically typed as Serializable
 185     private Object trigger = null;
 186 
 187 
 188     /*
 189      * ------------------------------------------
 190      *  CONSTRUCTORS
 191      * ------------------------------------------
 192      */
 193 
 194     /**
 195      * Creates a monitor notification object.
 196      *
 197      * @param type The notification type.
 198      * @param source The notification producer.
 199      * @param sequenceNumber The notification sequence number within the source object.
 200      * @param timeStamp The notification emission date.
 201      * @param msg The notification message.
 202      * @param obsObj The object observed by the producer of this notification.
 203      * @param obsAtt The attribute observed by the producer of this notification.
 204      * @param derGauge The derived gauge.


< prev index next >