|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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).
| Inner Class Summary | |
(package private) class |
GaugeMonitor.GaugeMonitorThread
|
| Fields inherited from class javax.management.monitor.Monitor |
alreadyNotified,
alreadyNotifieds,
capacityIncrement,
dbgTag,
derivedGaugeTimeStamp,
elementCount,
isActive,
logger,
OBSERVED_ATTRIBUTE_ERROR_NOTIFIED,
OBSERVED_ATTRIBUTE_TYPE_ERROR_NOTIFIED,
OBSERVED_OBJECT_ERROR_NOTIFIED,
RESET_FLAGS_ALREADY_NOTIFIED,
RUNTIME_ERROR_NOTIFIED,
sequenceNumber,
server |
| Fields inherited from class javax.management.NotificationBroadcasterSupport |
li |
| Constructor Summary | |
GaugeMonitor()
Default Constructor. |
|
| Method Summary | |
java.lang.Number |
getDerivedGauge()
Deprecated. Replaced by getDerivedGauge(ObjectName) |
java.lang.Number |
getDerivedGauge(ObjectName object)
This method gets the derived gauge of the specified object, if this object is contained in the set of observed MBeans, or null otherwise. |
long |
getDerivedGaugeTimeStamp()
Deprecated. Replaced by getDerivedGaugeTimeStamp(ObjectName) |
long |
getDerivedGaugeTimeStamp(ObjectName object)
This method gets the derived gauge timestamp of the specified object, if this object is contained in the set of observed MBeans, or null otherwise. |
boolean |
getDifferenceMode()
This method gets the value of the difference mode common to all observed MBeans. |
java.lang.Number |
getHighThreshold()
This method gets the value of high threshold common to all observed MBeans. |
java.lang.Number |
getLowThreshold()
This method gets the value of low threshold common to all observed MBeans. |
MBeanNotificationInfo[] |
getNotificationInfo()
This method returns a NotificationInfo object containing the name of the Java class of the notification and the notification types sent by the counter monitor. |
boolean |
getNotifyHigh()
This method gets the high notification's on/off switch value common to all observed MBeans. |
boolean |
getNotifyLow()
This method gets the low notification's on/off switch value common to all observed MBeans. |
(package private) void |
insertSpecificElementAt(int index)
This method is called when adding a new observed object in the list. |
ObjectName |
preRegister(MBeanServer server,
ObjectName name)
Overriding the preRegister() of MBeanRegistration interface to store the ObjectName locally. |
(package private) void |
removeSpecificElementAt(int index)
This method is called when removing an observed object from the list. |
void |
setDifferenceMode(boolean value)
This method sets the state of difference mode common to all observed MBeans. |
void |
setNotifyHigh(boolean value)
This method sets the high notification's on/off switch value common to all observed MBeans. |
void |
setNotifyLow(boolean value)
This method sets the low notification's on/off switch value common to all observed MBeans. |
void |
setThresholds(java.lang.Number highValue,
java.lang.Number lowValue)
This method sets the high threshold and low threshold values. |
void |
start()
Starts the Gauge monitor. |
void |
stop()
Stops the Gauge Monitor. |
| Methods inherited from class javax.management.NotificationBroadcasterSupport |
addNotificationListener,
handleNotification,
handleNotification,
removeNotificationListener,
removeNotificationListener,
sendNotification |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public GaugeMonitor()
| Method Detail |
public java.lang.Number getDerivedGauge()
getDerivedGauge(ObjectName)
public java.lang.Number getDerivedGauge(ObjectName object)
null otherwise.object - the name of the MBean.public long getDerivedGaugeTimeStamp()
getDerivedGaugeTimeStamp(ObjectName)
public long getDerivedGaugeTimeStamp(ObjectName object)
null otherwise.object - the name of the MBean.public boolean getDifferenceMode()
setDifferenceMode(boolean)public void setDifferenceMode(boolean value)
value - boolean value representing the state of the difference mode.getDifferenceMode()public java.lang.Number getHighThreshold()
public java.lang.Number getLowThreshold()
public void setThresholds(java.lang.Number highValue,
java.lang.Number lowValue)
throws java.lang.IllegalArgumentException
highValue - - The high threshold value.lowValue - - The low threshold value.public boolean getNotifyHigh()
true if the gauge monitor notifies when
exceeding the high threshold, false otherwise.setNotifyHigh(boolean)public void setNotifyHigh(boolean value)
value - - The high notification's on/off switch value.getNotifyHigh()public boolean getNotifyLow()
true if the gauge monitor notifies when
exceeding the low threshold, false otherwise.setNotifyLow(boolean)public void setNotifyLow(boolean value)
value - - The low notification's on/off switch value.getNotifyLow()
public ObjectName preRegister(MBeanServer server,
ObjectName name)
throws java.lang.Exception
server - - The MBean server in which the monitor MBean will be registered.name - - The object name of the monitor MBean.public void start()
public void stop()
public MBeanNotificationInfo[] getNotificationInfo()
void insertSpecificElementAt(int index)
index - The index of the observed object.void removeSpecificElementAt(int index)
index - The index of the observed object.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||