|
|||||||||
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
. Subsequent matchings of the string to compare
values do not cause further notifications unless the attribute value
differs from the string to compare value.differ notification
is sent. The notify differ flag must be set
to true
. Subsequent differences from the string to compare
value do not cause further notifications unless the attribute value
matches the string to compare value.
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 java.lang.String getDerivedGauge()
public long getDerivedGaugeTimeStamp()
public MBeanNotificationInfo[] getNotificationInfo()
public boolean getNotifyDiffer()
public boolean getNotifyMatch()
public java.lang.String getStringToCompare()
public void setNotifyDiffer(boolean value)
value
- The differing notification's on/off switch value.public void setNotifyMatch(boolean value)
value
- The matching notification's on/off switch value.public void setStringToCompare(java.lang.String value) throws java.lang.IllegalArgumentException
value
- The string value.public void start()
public void stop()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |