mx4j.monitor

Class MX4JStringMonitor

Implemented Interfaces:
javax.management.MBeanRegistration, MX4JMonitorMBean, MX4JStringMonitorMBean, javax.management.NotificationEmitter

public class MX4JStringMonitor
extends MX4JMonitor
implements MX4JStringMonitorMBean

Version:
$Revision: 1.3 $

Nested Class Summary

protected class
MX4JStringMonitor.StringMonitorInfo

Nested classes/interfaces inherited from class mx4j.monitor.MX4JMonitor

MX4JMonitor.MonitorInfo

Constructor Summary

MX4JStringMonitor()
MX4JStringMonitor(Class management)

Method Summary

protected int
compare(String left, String right)
protected MX4JMonitor.MonitorInfo
createMonitorInfo()
String
getDerivedGauge(javax.management.ObjectName objectName)
long
getDerivedGaugeTimeStamp(javax.management.ObjectName objectName)
javax.management.MBeanNotificationInfo[]
getNotificationInfo()
boolean
getNotifyDiffer()
boolean
getNotifyMatch()
String
getStringToCompare()
protected void
monitor(javax.management.ObjectName name, String attribute, Object value, MX4JMonitor.MonitorInfo monitorInfo)
void
setNotifyDiffer(boolean notifyDiffer)
void
setNotifyMatch(boolean notifyMatch)
void
setStringToCompare(String value)

Methods inherited from class mx4j.monitor.MX4JMonitor

addNotificationListener, addObservedObject, clearObservedObjects, containsObservedObject, createMonitorInfo, createMonitorNotification, createNotificationEmitter, getGranularityPeriod, getLogger, getMonitorInfo, getObservedAttribute, getObservedObjects, isActive, monitor, postDeregister, postRegister, preDeregister, preRegister, putMonitorInfo, removeMonitorInfo, removeNotificationListener, removeNotificationListener, removeObservedObject, sendErrorNotification, sendNotification, sendNotification, setGranularityPeriod, setObservedAttribute, start, startMonitor, stop, stopMonitor

Constructor Details

MX4JStringMonitor

public MX4JStringMonitor()
            throws javax.management.NotCompliantMBeanException

MX4JStringMonitor

public MX4JStringMonitor(Class management)
            throws javax.management.NotCompliantMBeanException

Method Details

compare

protected int compare(String left,
                      String right)

createMonitorInfo

protected MX4JMonitor.MonitorInfo createMonitorInfo()
Overrides:
createMonitorInfo in interface MX4JMonitor

getDerivedGauge

public String getDerivedGauge(javax.management.ObjectName objectName)
Specified by:
getDerivedGauge in interface MX4JStringMonitorMBean

getDerivedGaugeTimeStamp

public long getDerivedGaugeTimeStamp(javax.management.ObjectName objectName)
Specified by:
getDerivedGaugeTimeStamp in interface MX4JStringMonitorMBean

getNotificationInfo

public javax.management.MBeanNotificationInfo[] getNotificationInfo()

getNotifyDiffer

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

getNotifyMatch

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

getStringToCompare

public String getStringToCompare()
Specified by:
getStringToCompare in interface MX4JStringMonitorMBean

monitor

protected void monitor(javax.management.ObjectName name,
                       String attribute,
                       Object value,
                       MX4JMonitor.MonitorInfo monitorInfo)
Overrides:
monitor in interface MX4JMonitor

setNotifyDiffer

public void setNotifyDiffer(boolean notifyDiffer)
Specified by:
setNotifyDiffer in interface MX4JStringMonitorMBean

setNotifyMatch

public void setNotifyMatch(boolean notifyMatch)
Specified by:
setNotifyMatch in interface MX4JStringMonitorMBean

setStringToCompare

public void setStringToCompare(String value)
            throws IllegalArgumentException
Specified by:
setStringToCompare in interface MX4JStringMonitorMBean

Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.