|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.management.NotificationBroadcasterSupport
javax.management.monitor.Monitor
javax.management.monitor.StringMonitor
The string monitor service.
| Field Summary |
| Fields inherited from class javax.management.monitor.Monitor |
alreadyNotified, alreadyNotifieds, capacityIncrement, dbgTag, elementCount, 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 | |
String |
getDerivedGauge()
Retrieves the derived gauge. |
String |
getDerivedGauge(ObjectName name)
Retrieves the derived gauge. |
long |
getDerivedGaugeTimeStamp()
Retrieves the derived gauge timestamp. |
long |
getDerivedGaugeTimeStamp(ObjectName name)
Retrieves the derived gauge timestamp. |
MBeanNotificationInfo[] |
getNotificationInfo()
Returns the notification metadata associated with the MBean. |
boolean |
getNotifyDiffer()
Retrieves the differs on/off switch. |
boolean |
getNotifyMatch()
Retrieves the matching on/off switch. |
String |
getStringToCompare()
Retrieves the string to compare with the observed attribute. |
void |
setNotifyDiffer(boolean value)
Sets the differs on/off switch. |
void |
setNotifyMatch(boolean value)
Sets the matching on/off switch. |
void |
setStringToCompare(String value)
Sets the string to compare with the observed attribute. |
void |
start()
Starts the monitor. |
void |
stop()
Stops the monitor. |
| Methods inherited from class javax.management.monitor.Monitor |
addObservedObject, containsObservedObject, getGranularityPeriod, getObservedAttribute, getObservedObject, getObservedObjects, isActive, postDeregister, postRegister, preDeregister, preRegister, removeObservedObject, setGranularityPeriod, setObservedAttribute, setObservedObject, toString |
| Methods inherited from class javax.management.NotificationBroadcasterSupport |
addNotificationListener, handleNotification, removeNotificationListener, 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 |
addObservedObject, containsObservedObject, getGranularityPeriod, getObservedAttribute, getObservedObject, getObservedObjects, isActive, removeObservedObject, setGranularityPeriod, setObservedAttribute, setObservedObject |
| Constructor Detail |
public StringMonitor()
| Method Detail |
public MBeanNotificationInfo[] getNotificationInfo()
NotificationBroadcaster
getNotificationInfo in interface NotificationBroadcastergetNotificationInfo in class NotificationBroadcasterSupportpublic String getDerivedGauge()
StringMonitorMBean
getDerivedGauge in interface StringMonitorMBeanpublic String getDerivedGauge(ObjectName name)
StringMonitorMBean
getDerivedGauge in interface StringMonitorMBeanname - the object name of the mbean.
public long getDerivedGaugeTimeStamp()
StringMonitorMBean
getDerivedGaugeTimeStamp in interface StringMonitorMBeanpublic long getDerivedGaugeTimeStamp(ObjectName name)
StringMonitorMBean
getDerivedGaugeTimeStamp in interface StringMonitorMBeanname - the object name of the mbean.
public String getStringToCompare()
StringMonitorMBean
getStringToCompare in interface StringMonitorMBeanpublic void setStringToCompare(String value) throws IllegalArgumentException
StringMonitorMBean
setStringToCompare in interface StringMonitorMBeanvalue - the comparison string.
IllegalArgumentException - when specified string is null.public boolean getNotifyMatch()
StringMonitorMBean
getNotifyMatch in interface StringMonitorMBeanpublic void setNotifyMatch(boolean value)
StringMonitorMBean
setNotifyMatch in interface StringMonitorMBeanvalue - pass true for a notification when the string matches, false
otherwise.public boolean getNotifyDiffer()
StringMonitorMBean
getNotifyDiffer in interface StringMonitorMBeanpublic void setNotifyDiffer(boolean value)
StringMonitorMBean
setNotifyDiffer in interface StringMonitorMBeanvalue - pass true for a notification when the string differs, false
otherwise.public void start()
MonitorMBean
start in interface MonitorMBeanstart in class Monitorpublic void stop()
MonitorMBean
stop in interface MonitorMBeanstop in class Monitor
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||