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
- Version:
- $Revision: 1.3 $
- Author:
- Carlos Quiroz
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
- Overrides:
start
in class Monitor
stop
public void stop()
- Specified by:
stop
in interface MonitorMBean
- Overrides:
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
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
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
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 MBeanNotificationInfo[] getNotificationInfo()
- Description copied from interface:
NotificationBroadcaster
- Returns the name of the java class of the notification and the
notification types sent.
- Overrides:
getNotificationInfo
in class NotificationBroadcasterSupport
- Following copied from interface:
javax.management.NotificationBroadcaster
- Returns:
- MBeanNotificationInfo The NotificationInfo
Copyright © 2001-2002 MX4J Team. All Rights Reserved.