src/java.management/share/classes/javax/management/monitor/MonitorNotification.java
author darcy
Wed, 23 Oct 2019 13:01:40 -0700
changeset 58766 54ffb15c4839
parent 47216 71c04702a3d5
permissions -rw-r--r--
8232442: Suppress warnings on non-serializable non-transient instance fields in java.management.* Reviewed-by: rriggs, mchung
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
58766
54ffb15c4839 8232442: Suppress warnings on non-serializable non-transient instance fields in java.management.*
darcy
parents: 47216
diff changeset
     2
 * Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4156
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4156
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4156
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4156
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 4156
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package javax.management.monitor;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
// jmx imports
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
//
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
import javax.management.ObjectName;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
 * Provides definitions of the notifications sent by monitor MBeans.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
 * <P>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 * The notification source and a set of parameters concerning the monitor MBean's state
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 * need to be specified when creating a new object of this class.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 * The list of notifications fired by the monitor MBeans is the following:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 * <UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
 * <LI>Common to all kind of monitors:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
 *     <UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
 *     <LI>The observed object is not registered in the MBean server.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
 *     <LI>The observed attribute is not contained in the observed object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
 *     <LI>The type of the observed attribute is not correct.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
 *     <LI>Any exception (except the cases described above) occurs when trying to get the value of the observed attribute.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
 *     </UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
 * <LI>Common to the counter and the gauge monitors:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
 *     <UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
 *     <LI>The threshold high or threshold low are not of the same type as the gauge (gauge monitors).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
 *     <LI>The threshold or the offset or the modulus are not of the same type as the counter (counter monitors).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
 *     </UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
 * <LI>Counter monitors only:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
 *     <UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
 *     <LI>The observed attribute has reached the threshold value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
 *     </UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
 * <LI>Gauge monitors only:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
 *     <UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
 *     <LI>The observed attribute has exceeded the threshold high value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
 *     <LI>The observed attribute has exceeded the threshold low value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
 *     </UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
 * <LI>String monitors only:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
 *     <UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
 *     <LI>The observed attribute has matched the "string to compare" value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
 *     <LI>The observed attribute has differed from the "string to compare" value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
 *     </UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
 * </UL>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
 * @since 1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
public class MonitorNotification extends javax.management.Notification {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
    /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
     * ------------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
     *  PUBLIC VARIABLES
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
     * ------------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
     * Notification type denoting that the observed object is not registered in the MBean server.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
     * This notification is fired by all kinds of monitors.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
     * <BR>The value of this notification type is <CODE>jmx.monitor.error.mbean</CODE>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
    public static final String OBSERVED_OBJECT_ERROR = "jmx.monitor.error.mbean";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
     * Notification type denoting that the observed attribute is not contained in the observed object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
     * This notification is fired by all kinds of monitors.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
     * <BR>The value of this notification type is <CODE>jmx.monitor.error.attribute</CODE>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
    public static final String OBSERVED_ATTRIBUTE_ERROR = "jmx.monitor.error.attribute";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
     * Notification type denoting that the type of the observed attribute is not correct.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
     * This notification is fired by all kinds of monitors.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
     * <BR>The value of this notification type is <CODE>jmx.monitor.error.type</CODE>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
    public static final String OBSERVED_ATTRIBUTE_TYPE_ERROR = "jmx.monitor.error.type";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
     * Notification type denoting that the type of the thresholds, offset or modulus is not correct.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
     * This notification is fired by counter and gauge monitors.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
     * <BR>The value of this notification type is <CODE>jmx.monitor.error.threshold</CODE>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
    public static final String THRESHOLD_ERROR = "jmx.monitor.error.threshold";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
     * Notification type denoting that a non-predefined error type has occurred when trying to get the value of the observed attribute.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
     * This notification is fired by all kinds of monitors.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
     * <BR>The value of this notification type is <CODE>jmx.monitor.error.runtime</CODE>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
    public static final String RUNTIME_ERROR = "jmx.monitor.error.runtime";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
     * Notification type denoting that the observed attribute has reached the threshold value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
     * This notification is only fired by counter monitors.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
     * <BR>The value of this notification type is <CODE>jmx.monitor.counter.threshold</CODE>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
    public static final String THRESHOLD_VALUE_EXCEEDED = "jmx.monitor.counter.threshold";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
     * Notification type denoting that the observed attribute has exceeded the threshold high value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
     * This notification is only fired by gauge monitors.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
     * <BR>The value of this notification type is <CODE>jmx.monitor.gauge.high</CODE>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
    public static final String THRESHOLD_HIGH_VALUE_EXCEEDED = "jmx.monitor.gauge.high";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
     * Notification type denoting that the observed attribute has exceeded the threshold low value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
     * This notification is only fired by gauge monitors.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
     * <BR>The value of this notification type is <CODE>jmx.monitor.gauge.low</CODE>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
    public static final String THRESHOLD_LOW_VALUE_EXCEEDED = "jmx.monitor.gauge.low";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
     * Notification type denoting that the observed attribute has matched the "string to compare" value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
     * This notification is only fired by string monitors.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
     * <BR>The value of this notification type is <CODE>jmx.monitor.string.matches</CODE>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
    public static final String STRING_TO_COMPARE_VALUE_MATCHED = "jmx.monitor.string.matches";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
     * Notification type denoting that the observed attribute has differed from the "string to compare" value.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
     * This notification is only fired by string monitors.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
     * <BR>The value of this notification type is <CODE>jmx.monitor.string.differs</CODE>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
    public static final String STRING_TO_COMPARE_VALUE_DIFFERED = "jmx.monitor.string.differs";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
    /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
     * ------------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
     *  PRIVATE VARIABLES
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
     * ------------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
    /* Serial version */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
    private static final long serialVersionUID = -4608189663661929204L;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
     * @serial Monitor notification observed object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
     */
58766
54ffb15c4839 8232442: Suppress warnings on non-serializable non-transient instance fields in java.management.*
darcy
parents: 47216
diff changeset
   165
    @SuppressWarnings("serial") // Not statically typed as Serializable
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
    private ObjectName observedObject = null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
     * @serial Monitor notification observed attribute.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
    private String observedAttribute = null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
     * @serial Monitor notification derived gauge.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
     */
58766
54ffb15c4839 8232442: Suppress warnings on non-serializable non-transient instance fields in java.management.*
darcy
parents: 47216
diff changeset
   176
    @SuppressWarnings("serial") // Not statically typed as Serializable
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
    private Object derivedGauge = null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
     * @serial Monitor notification release mechanism.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
     *         This value is used to keep the threshold/string (depending on the
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
     *         monitor type) that triggered off this notification.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
     */
58766
54ffb15c4839 8232442: Suppress warnings on non-serializable non-transient instance fields in java.management.*
darcy
parents: 47216
diff changeset
   184
    @SuppressWarnings("serial") // Not statically typed as Serializable
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
    private Object trigger = null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
    /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
     * ------------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
     *  CONSTRUCTORS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
     * ------------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
     * Creates a monitor notification object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
     * @param type The notification type.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
     * @param source The notification producer.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
     * @param sequenceNumber The notification sequence number within the source object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
     * @param timeStamp The notification emission date.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
     * @param msg The notification message.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
     * @param obsObj The object observed by the producer of this notification.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
     * @param obsAtt The attribute observed by the producer of this notification.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
     * @param derGauge The derived gauge.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
     * @param trigger The threshold/string (depending on the monitor type) that triggered the notification.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
     */
4156
acaa49a2768a 6851617: Remove JSR 255 (JMX API 2.0) from JDK 7
emcmanus
parents: 1701
diff changeset
   207
    MonitorNotification(String type, Object source, long sequenceNumber, long timeStamp, String msg,
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
                               ObjectName obsObj, String obsAtt, Object derGauge, Object trigger) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
        super(type, source, sequenceNumber, timeStamp, msg);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
        this.observedObject = obsObj;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
        this.observedAttribute = obsAtt;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
        this.derivedGauge = derGauge;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
        this.trigger = trigger;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
    /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
     * ------------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
     *  PUBLIC METHODS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
     * ------------------------------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
    // GETTERS AND SETTERS
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
    //--------------------
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
     * Gets the observed object of this monitor notification.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
     * @return The observed object.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
    public ObjectName getObservedObject() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
        return observedObject;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
     * Gets the observed attribute of this monitor notification.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
     * @return The observed attribute.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
    public String getObservedAttribute() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
        return observedAttribute;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
     * Gets the derived gauge of this monitor notification.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   247
     * @return The derived gauge.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
    public Object getDerivedGauge() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
        return derivedGauge;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   251
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
90ce3da70b43 Initial load
duke
parents:
diff changeset
   253
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   254
     * Gets the threshold/string (depending on the monitor type) that triggered off this monitor notification.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   255
     *
90ce3da70b43 Initial load
duke
parents:
diff changeset
   256
     * @return The trigger.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   257
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
    public Object getTrigger() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   259
        return trigger;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   260
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   261
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
}