javax.management.monitor
Class GaugeMonitor
java.lang.Object
|
+--javax.management.NotificationBroadcasterSupport
|
+--javax.management.monitor.Monitor
|
+--javax.management.monitor.GaugeMonitor
- All Implemented Interfaces:
- GaugeMonitorMBean, MBeanRegistration, MonitorMBean, NotificationBroadcaster
- public class GaugeMonitor
- extends Monitor
- implements MonitorMBean, GaugeMonitorMBean
Methods inherited from class javax.management.monitor.Monitor |
getGranularityPeriod, getObservedAttribute, getObservedObject, isActive, postDeregister, postRegister, preDeregister, preRegister, setGranularityPeriod, setObservedAttribute, setObservedObject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GaugeMonitor
public GaugeMonitor()
start
public void start()
- Specified by:
start
in interface MonitorMBean
- Specified by:
start
in class Monitor
stop
public void stop()
- Specified by:
stop
in interface MonitorMBean
- Specified by:
stop
in class Monitor
getDerivedGauge
public java.lang.Number getDerivedGauge()
- Specified by:
getDerivedGauge
in interface GaugeMonitorMBean
getDerivedGaugeTimeStamp
public long getDerivedGaugeTimeStamp()
- Specified by:
getDerivedGaugeTimeStamp
in interface GaugeMonitorMBean
getHighThreshold
public java.lang.Number getHighThreshold()
- Specified by:
getHighThreshold
in interface GaugeMonitorMBean
getLowThreshold
public java.lang.Number getLowThreshold()
- Specified by:
getLowThreshold
in interface GaugeMonitorMBean
setThresholds
public void setThresholds(java.lang.Number highValue,
java.lang.Number lowValue)
throws java.lang.IllegalArgumentException
- Specified by:
setThresholds
in interface GaugeMonitorMBean
java.lang.IllegalArgumentException
getNotifyHigh
public boolean getNotifyHigh()
- Specified by:
getNotifyHigh
in interface GaugeMonitorMBean
setNotifyHigh
public void setNotifyHigh(boolean value)
- Specified by:
setNotifyHigh
in interface GaugeMonitorMBean
getNotifyLow
public boolean getNotifyLow()
- Specified by:
getNotifyLow
in interface GaugeMonitorMBean
setNotifyLow
public void setNotifyLow(boolean value)
- Specified by:
setNotifyLow
in interface GaugeMonitorMBean
getDifferenceMode
public boolean getDifferenceMode()
- Specified by:
getDifferenceMode
in interface GaugeMonitorMBean
setDifferenceMode
public void setDifferenceMode(boolean value)
- Specified by:
setDifferenceMode
in interface GaugeMonitorMBean
getNotificationInfo
public javax.management.MBeanNotificationInfo[] getNotificationInfo()
- Description copied from interface:
NotificationBroadcaster
- Returns the name of the java class of the notification and the
notification types sent.
- Specified by:
getNotificationInfo
in interface NotificationBroadcaster
- Overrides:
getNotificationInfo
in class NotificationBroadcasterSupport
- Returns:
- MBeanNotificationInfo The NotificationInfo
toString
public java.lang.String toString()
- Overrides:
toString
in class Monitor