|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.management.NotificationBroadcasterSupport (src)
javax.management.monitor.Monitor (src)
javax.management.monitor.GaugeMonitor
The gauge monitor service.
Field Summary |
Fields inherited from class javax.management.monitor.Monitor (src) |
alreadyNotified, alreadyNotifieds, capacityIncrement, dbgTag, elementCount, OBSERVED_ATTRIBUTE_ERROR_NOTIFIED, OBSERVED_ATTRIBUTE_TYPE_ERROR_NOTIFIED, OBSERVED_OBJECT_ERROR_NOTIFIED, RESET_FLAGS_ALREADY_NOTIFIED, RUNTIME_ERROR_NOTIFIED, server |
Constructor Summary | |
GaugeMonitor()
Default Constructor |
Method Summary | |
java.lang.Number |
getDerivedGauge()
Retrieves the derived gauge. |
java.lang.Number |
getDerivedGauge(ObjectName (src) name)
Retrieves the derived gauge. |
long |
getDerivedGaugeTimeStamp()
Retrieves the derived gauge timestamp. |
long |
getDerivedGaugeTimeStamp(ObjectName (src) name)
Retrieves the derived gauge timestamp. |
boolean |
getDifferenceMode()
Retrieves the difference mode flag. |
java.lang.Number |
getHighThreshold()
Retrieves the high threshold. |
java.lang.Number |
getLowThreshold()
Retrieves the low threshold. |
MBeanNotificationInfo (src) [] |
getNotificationInfo()
Returns the notification metadata associated with the MBean. |
boolean |
getNotifyHigh()
Retrieves the high notify on/off switch. |
boolean |
getNotifyLow()
Retrieves the low notify on/off switch. |
void |
setDifferenceMode(boolean value)
Sets the difference mode flag. |
void |
setNotifyHigh(boolean value)
Sets the high notify on/off switch. |
void |
setNotifyLow(boolean value)
Sets the low notify on/off switch. |
void |
setThresholds(java.lang.Number highValue,
java.lang.Number lowValue)
Sets the high and low threshold. |
void |
start()
Starts the monitor. |
void |
stop()
Stops the monitor. |
Methods inherited from class javax.management.monitor.Monitor (src) |
addObservedObject, containsObservedObject, getGranularityPeriod, getObservedAttribute, getObservedObject, getObservedObjects, isActive, postDeregister, postRegister, preDeregister, preRegister, removeObservedObject, setGranularityPeriod, setObservedAttribute, setObservedObject, toString |
Methods inherited from class javax.management.NotificationBroadcasterSupport (src) |
addNotificationListener, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.management.monitor.MonitorMBean (src) |
addObservedObject, containsObservedObject, getGranularityPeriod, getObservedAttribute, getObservedObject, getObservedObjects, isActive, removeObservedObject, setGranularityPeriod, setObservedAttribute, setObservedObject |
Constructor Detail |
public GaugeMonitor()
Method Detail |
public MBeanNotificationInfo (src) [] getNotificationInfo()
NotificationBroadcaster (src)
getNotificationInfo
in interface NotificationBroadcaster (src)
getNotificationInfo
in class NotificationBroadcasterSupport (src)
public java.lang.Number getDerivedGauge()
GaugeMonitorMBean (src)
getDerivedGauge
in interface GaugeMonitorMBean (src)
public java.lang.Number getDerivedGauge(ObjectName (src) name)
GaugeMonitorMBean (src)
getDerivedGauge
in interface GaugeMonitorMBean (src)
name
- the object name of the mbean.
public long getDerivedGaugeTimeStamp()
GaugeMonitorMBean (src)
getDerivedGaugeTimeStamp
in interface GaugeMonitorMBean (src)
public long getDerivedGaugeTimeStamp(ObjectName (src) name)
GaugeMonitorMBean (src)
getDerivedGaugeTimeStamp
in interface GaugeMonitorMBean (src)
name
- the object name of the mbean.
public boolean getDifferenceMode()
GaugeMonitorMBean (src)
getDifferenceMode
in interface GaugeMonitorMBean (src)
public void setDifferenceMode(boolean value)
GaugeMonitorMBean (src)
setDifferenceMode
in interface GaugeMonitorMBean (src)
public boolean getNotifyHigh()
GaugeMonitorMBean (src)
getNotifyHigh
in interface GaugeMonitorMBean (src)
public void setNotifyHigh(boolean value)
GaugeMonitorMBean (src)
setNotifyHigh
in interface GaugeMonitorMBean (src)
value
- pass true for high notifications, false otherwise.public boolean getNotifyLow()
GaugeMonitorMBean (src)
getNotifyLow
in interface GaugeMonitorMBean (src)
public void setNotifyLow(boolean value)
GaugeMonitorMBean (src)
setNotifyLow
in interface GaugeMonitorMBean (src)
value
- pass true for low notifications, false otherwise.public java.lang.Number getHighThreshold()
GaugeMonitorMBean (src)
getHighThreshold
in interface GaugeMonitorMBean (src)
public java.lang.Number getLowThreshold()
GaugeMonitorMBean (src)
getLowThreshold
in interface GaugeMonitorMBean (src)
public void setThresholds(java.lang.Number highValue, java.lang.Number lowValue) throws java.lang.IllegalArgumentException
GaugeMonitorMBean (src)
setThresholds
in interface GaugeMonitorMBean (src)
highValue
- the high threshold value, pass zero for no high
threshold.lowValue
- the low threshold value, pass zero for no low
threshold.
java.lang.IllegalArgumentException
- when either threshold is null or
the high threshold is lower than the low threshold or the.
thresholds have different types.public void start()
MonitorMBean (src)
start
in interface MonitorMBean (src)
start
in class Monitor (src)
public void stop()
MonitorMBean (src)
stop
in interface MonitorMBean (src)
stop
in class Monitor (src)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |