java.lang.Object | |||
↳ | javax.management.NotificationBroadcasterSupport | ||
↳ | javax.management.monitor.Monitor | ||
↳ | javax.management.monitor.GaugeMonitor |
Defines a monitor MBean designed to observe the values of a gauge attribute.
A gauge monitor observes an attribute that is continuously variable with time. A gauge monitor sends notifications as follows:
threshold high
notification
is sent. The notify high flag must be set to
true
.
threshold low
notification
is sent. The notify low flag must be set to
true
.
If the gauge difference mode is used, the value of the derived
gauge is calculated as the difference between the observed gauge
values for two successive observations.
The derived gauge value (V[t]) is calculated using the following method:
Byte
, Integer
, Short
,
Long
, Float
, Double
).
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Default constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
As of JMX 1.2, replaced by
getDerivedGauge(ObjectName)
| |||||||||||
Gets the derived gauge of the specified object, if this object is
contained in the set of observed MBeans, or
null otherwise. | |||||||||||
Gets the derived gauge timestamp of the specified object, if
this object is contained in the set of observed MBeans, or
0 otherwise. | |||||||||||
This method is deprecated.
As of JMX 1.2, replaced by
getDerivedGaugeTimeStamp(ObjectName)
| |||||||||||
Gets the difference mode flag value common to all observed MBeans.
| |||||||||||
Gets the high threshold value common to all observed MBeans.
| |||||||||||
Gets the low threshold value common to all observed MBeans.
| |||||||||||
Returns a
NotificationInfo object containing the
name of the Java class of the notification and the notification
types sent by the gauge monitor. | |||||||||||
Gets the high notification's on/off switch value common to all
observed MBeans.
| |||||||||||
Gets the low notification's on/off switch value common to all
observed MBeans.
| |||||||||||
Sets the difference mode flag value common to all observed MBeans.
| |||||||||||
Sets the high notification's on/off switch value common to all
observed MBeans.
| |||||||||||
Sets the low notification's on/off switch value common to all
observed MBeans.
| |||||||||||
Sets the high and the low threshold values common to all
observed MBeans.
| |||||||||||
Starts the gauge monitor.
| |||||||||||
Stops the gauge monitor.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
Default constructor.
This method is deprecated.
As of JMX 1.2, replaced by
getDerivedGauge(ObjectName)
Returns the derived gauge of the first object in the set of observed MBeans.
Gets the derived gauge of the specified object, if this object is
contained in the set of observed MBeans, or null
otherwise.
object | the name of the MBean. |
---|
Gets the derived gauge timestamp of the specified object, if
this object is contained in the set of observed MBeans, or
0
otherwise.
object | the name of the object whose derived gauge timestamp is to be returned. |
---|
This method is deprecated.
As of JMX 1.2, replaced by
getDerivedGaugeTimeStamp(ObjectName)
Gets the derived gauge timestamp of the first object in the set of observed MBeans.
Gets the difference mode flag value common to all observed MBeans.
true
if the difference mode is used,
false
otherwise.Gets the high threshold value common to all observed MBeans.
Gets the low threshold value common to all observed MBeans.
Returns a NotificationInfo
object containing the
name of the Java class of the notification and the notification
types sent by the gauge monitor.
Gets the high notification's on/off switch value common to all observed MBeans.
true
if the gauge monitor notifies when
exceeding the high threshold, false
otherwise.Gets the low notification's on/off switch value common to all observed MBeans.
true
if the gauge monitor notifies when
exceeding the low threshold, false
otherwise.Sets the difference mode flag value common to all observed MBeans.
value | The difference mode flag value. |
---|
Sets the high notification's on/off switch value common to all observed MBeans.
value | The high notification's on/off switch value. |
---|
Sets the low notification's on/off switch value common to all observed MBeans.
value | The low notification's on/off switch value. |
---|
Sets the high and the low threshold values common to all observed MBeans.
highValue | The high threshold value. |
---|---|
lowValue | The low threshold value. |
IllegalArgumentException | The specified high/low threshold is null or the low threshold is greater than the high threshold or the high threshold and the low threshold are not of the same type. |
---|
Starts the gauge monitor.
Stops the gauge monitor.