|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | 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.
| Fields inherited from class javax.management.monitor.Monitor |
alreadyNotified,
dbgTag,
OBSERVED_ATTRIBUTE_ERROR_NOTIFIED,
OBSERVED_ATTRIBUTE_TYPE_ERROR_NOTIFIED,
OBSERVED_OBJECT_ERROR_NOTIFIED,
RESET_FLAGS_ALREADY_NOTIFIED,
RUNTIME_ERROR_NOTIFIED,
server |
| Constructor Summary | |
StringMonitor()
Default constructor. |
|
| Method Summary | |
java.lang.String |
getDerivedGauge()
Gets the derived gauge. |
long |
getDerivedGaugeTimeStamp()
Gets the derived gauge timestamp. |
MBeanNotificationInfo[] |
getNotificationInfo()
Returns a NotificationInfo object containing the name of the Java class of the notification
and the notification types sent by the string monitor. |
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()
Starts the string monitor. |
void |
stop()
Stops the string monitor. |
| 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,
toString,
wait,
wait,
wait |
| Constructor Detail |
public StringMonitor()
| Method Detail |
public void start()
public void stop()
public java.lang.String getDerivedGauge()
public long getDerivedGaugeTimeStamp()
public java.lang.String getStringToCompare()
public void setStringToCompare(java.lang.String value)
throws java.lang.IllegalArgumentException
value - The string value.public boolean getNotifyMatch()
true if the string monitor notifies when matching the string to compare, false otherwise.public void setNotifyMatch(boolean value)
value - The matching notification's on/off switch value.public boolean getNotifyDiffer()
true if the string monitor notifies when differing from the string to compare, false otherwise.public void setNotifyDiffer(boolean value)
value - The differing notification's on/off switch value.public MBeanNotificationInfo[] getNotificationInfo()
NotificationInfo object containing the name of the Java class of the notification
and the notification types sent by the string monitor.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||