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

Version:
$Revision: 1.3 $
Author:
Carlos Quiroz

Constructor Summary
GaugeMonitor()
           
 
Method Summary
 java.lang.Number getDerivedGauge()
           
 long getDerivedGaugeTimeStamp()
           
 boolean getDifferenceMode()
           
 java.lang.Number getHighThreshold()
           
 java.lang.Number getLowThreshold()
           
 MBeanNotificationInfo[] getNotificationInfo()
          Returns the name of the java class of the notification and the notification types sent.
 boolean getNotifyHigh()
           
 boolean getNotifyLow()
           
 void setDifferenceMode(boolean value)
           
 void setNotifyHigh(boolean value)
           
 void setNotifyLow(boolean value)
           
 void setThresholds(java.lang.Number highValue, java.lang.Number lowValue)
           
 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

GaugeMonitor

public GaugeMonitor()
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 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 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


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