|
|||||||||||
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
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 NotificationBroadcaster
getNotificationInfo
in class NotificationBroadcasterSupport
public String getDerivedGauge()
StringMonitorMBean
getDerivedGauge
in interface StringMonitorMBean
public String getDerivedGauge(ObjectName name)
StringMonitorMBean
getDerivedGauge
in interface StringMonitorMBean
name
- the object name of the mbean.
public long getDerivedGaugeTimeStamp()
StringMonitorMBean
getDerivedGaugeTimeStamp
in interface StringMonitorMBean
public long getDerivedGaugeTimeStamp(ObjectName name)
StringMonitorMBean
getDerivedGaugeTimeStamp
in interface StringMonitorMBean
name
- the object name of the mbean.
public String getStringToCompare()
StringMonitorMBean
getStringToCompare
in interface StringMonitorMBean
public void setStringToCompare(String value) throws IllegalArgumentException
StringMonitorMBean
setStringToCompare
in interface StringMonitorMBean
value
- the comparison string.
IllegalArgumentException
- when specified string is null.public boolean getNotifyMatch()
StringMonitorMBean
getNotifyMatch
in interface StringMonitorMBean
public void setNotifyMatch(boolean value)
StringMonitorMBean
setNotifyMatch
in interface StringMonitorMBean
value
- pass true for a notification when the string matches, false
otherwise.public boolean getNotifyDiffer()
StringMonitorMBean
getNotifyDiffer
in interface StringMonitorMBean
public void setNotifyDiffer(boolean value)
StringMonitorMBean
setNotifyDiffer
in interface StringMonitorMBean
value
- pass true for a notification when the string differs, false
otherwise.public void start()
MonitorMBean
start
in interface MonitorMBean
start
in class Monitor
public void stop()
MonitorMBean
stop
in interface MonitorMBean
stop
in class Monitor
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |