javax.management.monitor
Class CounterMonitor
java.lang.Object
|
+--javax.management.NotificationBroadcasterSupport
|
+--javax.management.monitor.Monitor
|
+--javax.management.monitor.CounterMonitor
- All Implemented Interfaces:
- CounterMonitorMBean, MBeanRegistration, MonitorMBean, NotificationBroadcaster
- public class CounterMonitor
- extends Monitor
- implements MonitorMBean, CounterMonitorMBean
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 |
CounterMonitor
public CounterMonitor()
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 CounterMonitorMBean
getDerivedGaugeTimeStamp
public long getDerivedGaugeTimeStamp()
- Specified by:
getDerivedGaugeTimeStamp
in interface CounterMonitorMBean
getThreshold
public java.lang.Number getThreshold()
- Specified by:
getThreshold
in interface CounterMonitorMBean
setThreshold
public void setThreshold(java.lang.Number value)
throws java.lang.IllegalArgumentException
- Specified by:
setThreshold
in interface CounterMonitorMBean
java.lang.IllegalArgumentException
getOffset
public java.lang.Number getOffset()
- Specified by:
getOffset
in interface CounterMonitorMBean
setOffset
public void setOffset(java.lang.Number value)
throws java.lang.IllegalArgumentException
- Specified by:
setOffset
in interface CounterMonitorMBean
java.lang.IllegalArgumentException
getModulus
public java.lang.Number getModulus()
- Specified by:
getModulus
in interface CounterMonitorMBean
setModulus
public void setModulus(java.lang.Number value)
throws java.lang.IllegalArgumentException
- Specified by:
setModulus
in interface CounterMonitorMBean
java.lang.IllegalArgumentException
getNotify
public boolean getNotify()
- Specified by:
getNotify
in interface CounterMonitorMBean
setNotify
public void setNotify(boolean value)
- Specified by:
setNotify
in interface CounterMonitorMBean
getDifferenceMode
public boolean getDifferenceMode()
- Specified by:
getDifferenceMode
in interface CounterMonitorMBean
setDifferenceMode
public void setDifferenceMode(boolean value)
- Specified by:
setDifferenceMode
in interface CounterMonitorMBean
toString
public java.lang.String toString()
- Overrides:
toString
in class Monitor
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