javax.management.monitor
Class StringMonitor

java.lang.Object
  |
  +--javax.management.NotificationBroadcasterSupport
        |
        +--javax.management.monitor.Monitor
              |
              +--javax.management.monitor.StringMonitor
All Implemented Interfaces:
MBeanRegistration, MonitorMBean, NotificationBroadcaster, StringMonitorMBean

public class StringMonitor
extends Monitor
implements StringMonitorMBean

Version:
$Revision: 1.3 $
Author:
Carlos Quiroz
See Also:
Monitor

Constructor Summary
StringMonitor()
           
 
Method Summary
 java.lang.String getDerivedGauge()
           
 long getDerivedGaugeTimeStamp()
           
 MBeanNotificationInfo[] getNotificationInfo()
          Returns the name of the java class of the notification and the notification types sent.
 boolean getNotifyDiffer()
           
 boolean getNotifyMatch()
           
 java.lang.String getStringToCompare()
           
 void setNotifyDiffer(boolean value)
           
 void setNotifyMatch(boolean value)
           
 void setStringToCompare(java.lang.String 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

StringMonitor

public StringMonitor()
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.String getDerivedGauge()
Specified by:
getDerivedGauge in interface StringMonitorMBean

getDerivedGaugeTimeStamp

public long getDerivedGaugeTimeStamp()
Specified by:
getDerivedGaugeTimeStamp in interface StringMonitorMBean

getStringToCompare

public java.lang.String getStringToCompare()
Specified by:
getStringToCompare in interface StringMonitorMBean

setStringToCompare

public void setStringToCompare(java.lang.String value)
                        throws java.lang.IllegalArgumentException
Specified by:
setStringToCompare in interface StringMonitorMBean
java.lang.IllegalArgumentException

getNotifyMatch

public boolean getNotifyMatch()
Specified by:
getNotifyMatch in interface StringMonitorMBean

setNotifyMatch

public void setNotifyMatch(boolean value)
Specified by:
setNotifyMatch in interface StringMonitorMBean

getNotifyDiffer

public boolean getNotifyDiffer()
Specified by:
getNotifyDiffer in interface StringMonitorMBean

setNotifyDiffer

public void setNotifyDiffer(boolean value)
Specified by:
setNotifyDiffer in interface StringMonitorMBean

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.