|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.NotificationBroadcasterSupport javax.management.monitor.Monitor javax.management.monitor.GaugeMonitor
The gauge monitor service.
Field Summary |
Fields inherited from class javax.management.monitor.Monitor |
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 | |
Number |
getDerivedGauge()
Retrieves the derived gauge. |
Number |
getDerivedGauge(ObjectName name)
Retrieves the derived gauge. |
long |
getDerivedGaugeTimeStamp()
Retrieves the derived gauge timestamp. |
long |
getDerivedGaugeTimeStamp(ObjectName name)
Retrieves the derived gauge timestamp. |
boolean |
getDifferenceMode()
Retrieves the difference mode flag. |
Number |
getHighThreshold()
Retrieves the high threshold. |
Number |
getLowThreshold()
Retrieves the low threshold. |
MBeanNotificationInfo[] |
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(Number highValue,
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 |
addObservedObject, containsObservedObject, getGranularityPeriod, getObservedAttribute, getObservedObject, getObservedObjects, isActive, postDeregister, postRegister, preDeregister, preRegister, removeObservedObject, setGranularityPeriod, setObservedAttribute, setObservedObject, toString |
Methods inherited from class javax.management.NotificationBroadcasterSupport |
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 |
addObservedObject, containsObservedObject, getGranularityPeriod, getObservedAttribute, getObservedObject, getObservedObjects, isActive, removeObservedObject, setGranularityPeriod, setObservedAttribute, setObservedObject |
Constructor Detail |
public GaugeMonitor()
Method Detail |
public MBeanNotificationInfo[] getNotificationInfo()
NotificationBroadcaster
getNotificationInfo
in interface NotificationBroadcaster
getNotificationInfo
in class NotificationBroadcasterSupport
public Number getDerivedGauge()
GaugeMonitorMBean
getDerivedGauge
in interface GaugeMonitorMBean
public Number getDerivedGauge(ObjectName name)
GaugeMonitorMBean
getDerivedGauge
in interface GaugeMonitorMBean
name
- the object name of the mbean.
public long getDerivedGaugeTimeStamp()
GaugeMonitorMBean
getDerivedGaugeTimeStamp
in interface GaugeMonitorMBean
public long getDerivedGaugeTimeStamp(ObjectName name)
GaugeMonitorMBean
getDerivedGaugeTimeStamp
in interface GaugeMonitorMBean
name
- the object name of the mbean.
public boolean getDifferenceMode()
GaugeMonitorMBean
getDifferenceMode
in interface GaugeMonitorMBean
public void setDifferenceMode(boolean value)
GaugeMonitorMBean
setDifferenceMode
in interface GaugeMonitorMBean
public boolean getNotifyHigh()
GaugeMonitorMBean
getNotifyHigh
in interface GaugeMonitorMBean
public void setNotifyHigh(boolean value)
GaugeMonitorMBean
setNotifyHigh
in interface GaugeMonitorMBean
value
- pass true for high notifications, false otherwise.public boolean getNotifyLow()
GaugeMonitorMBean
getNotifyLow
in interface GaugeMonitorMBean
public void setNotifyLow(boolean value)
GaugeMonitorMBean
setNotifyLow
in interface GaugeMonitorMBean
value
- pass true for low notifications, false otherwise.public Number getHighThreshold()
GaugeMonitorMBean
getHighThreshold
in interface GaugeMonitorMBean
public Number getLowThreshold()
GaugeMonitorMBean
getLowThreshold
in interface GaugeMonitorMBean
public void setThresholds(Number highValue, Number lowValue) throws IllegalArgumentException
GaugeMonitorMBean
setThresholds
in interface GaugeMonitorMBean
highValue
- the high threshold value, pass zero for no high
threshold.lowValue
- the low threshold value, pass zero for no low
threshold.
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
start
in interface MonitorMBean
start
in class Monitor
public void stop()
MonitorMBean
stop
in interface MonitorMBean
stop
in class Monitor
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |