javax.management.monitor
Class CounterMonitor

java.lang.Object
  extended byjavax.management.NotificationBroadcasterSupport
      extended byjavax.management.monitor.Monitor
          extended byjavax.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

Constructor Summary
CounterMonitor()
           
 
Method Summary
 java.lang.Number getDerivedGauge()
           
 long getDerivedGaugeTimeStamp()
           
 boolean getDifferenceMode()
           
 java.lang.Number getModulus()
           
 MBeanNotificationInfo[] getNotificationInfo()
          Returns the name of the java class of the notification and the notification types sent.
 boolean getNotify()
           
 java.lang.Number getOffset()
           
 java.lang.Number getThreshold()
           
 void setDifferenceMode(boolean value)
           
 void setModulus(java.lang.Number value)
           
 void setNotify(boolean value)
           
 void setOffset(java.lang.Number value)
           
 void setThreshold(java.lang.Number value)
           
 void start()
           
 void stop()
           
 java.lang.String toString()
           
 
Methods inherited from class javax.management.monitor.Monitor
getGranularityPeriod, getObservedAttribute, getObservedObject, isActive, postDeregister, postRegister, preDeregister, preRegister, setGranularityPeriod, setObservedAttribute, setObservedObject
 
Methods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, 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
getGranularityPeriod, getObservedAttribute, getObservedObject, isActive, setGranularityPeriod, setObservedAttribute, setObservedObject
 

Constructor Detail

CounterMonitor

public CounterMonitor()
Method Detail

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
Throws:
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
Throws:
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
Throws:
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 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


Copyright © 2001-2002 MX4J Team. All Rights Reserved.