|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--javax.management.NotificationBroadcasterSupport
|
+--javax.management.monitor.Monitor
|
+--javax.management.monitor.StringMonitor
Defines a monitor MBean designed to observe the values of a string attribute.
A string monitor sends notifications as follows:
match notification is sent.
The notify match flag must be set to true.
differ notification is sent.
The notify differ flag must be set to true.
| Constructor Summary | |
StringMonitor()
|
|
| Method Summary | |
protected void |
doMonitor(java.lang.Object value)
|
java.lang.String |
getDerivedGauge()
Gets the derived gauge. |
long |
getDerivedGaugeTimeStamp()
Gets the derived gauge timestamp. |
MBeanNotificationInfo[] |
getNotificationInfo()
Returns a NotificationInfo object contaning the name of the Java class of the notification and the notification types sent. |
boolean |
getNotifyDiffer()
Gets the differing notification's on/off switch value. |
boolean |
getNotifyMatch()
Gets the matching notification's on/off switch value. |
java.lang.String |
getStringToCompare()
Gets the string to compare with the observed attribute. |
void |
setNotifyDiffer(boolean value)
Sets the differing notification's on/off switch value. |
void |
setNotifyMatch(boolean value)
Sets the matching notification's on/off switch value. |
void |
setStringToCompare(java.lang.String value)
Sets the string to compare with the observed attribute. |
void |
start()
|
void |
stop()
|
| Methods inherited from class javax.management.monitor.Monitor |
_start, _stop, getGranularityPeriod, getObservedAttribute, getObservedObject, isActive, postDeregister, postRegister, preDeregister, preRegister, sendNotification, 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, toString, wait, wait, wait |
| Methods inherited from interface javax.management.monitor.MonitorMBean |
getGranularityPeriod, getObservedAttribute, getObservedObject, isActive, setGranularityPeriod, setObservedAttribute, setObservedObject |
| Constructor Detail |
public StringMonitor()
| Method Detail |
public void start()
start in class Monitorpublic void stop()
stop in class Monitorpublic java.lang.String getDerivedGauge()
StringMonitorMBean
getDerivedGauge in interface StringMonitorMBeanpublic long getDerivedGaugeTimeStamp()
StringMonitorMBean
getDerivedGaugeTimeStamp in interface StringMonitorMBeanpublic java.lang.String getStringToCompare()
StringMonitorMBean
getStringToCompare in interface StringMonitorMBean
public void setStringToCompare(java.lang.String value)
throws java.lang.IllegalArgumentException
StringMonitorMBean
setStringToCompare in interface StringMonitorMBeanvalue - The string value.
java.lang.IllegalArgumentException - The specified string to compare is null.public boolean getNotifyMatch()
StringMonitorMBean
getNotifyMatch in interface StringMonitorMBeantrue if the string monitor notifies when matching, false otherwise.public void setNotifyMatch(boolean value)
StringMonitorMBean
setNotifyMatch in interface StringMonitorMBeanvalue - The matching notification's on/off switch value.public boolean getNotifyDiffer()
StringMonitorMBean
getNotifyDiffer in interface StringMonitorMBeantrue if the string monitor notifies when differing, false otherwise.public void setNotifyDiffer(boolean value)
StringMonitorMBean
setNotifyDiffer in interface StringMonitorMBeanvalue - The differing notification's on/off switch value.public MBeanNotificationInfo[] getNotificationInfo()
NotificationBroadcasterSupport
getNotificationInfo in interface NotificationBroadcastergetNotificationInfo in class NotificationBroadcasterSupportprotected void doMonitor(java.lang.Object value)
doMonitor in class Monitor
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||