Interface StringMonitorMBean
- All Superinterfaces:
MonitorMBean
- All Known Implementing Classes:
StringMonitor
Exposes the remote management interface of the string monitor MBean.
- Since:
- 1.5
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.getDerivedGauge(ObjectName object) Gets the derived gauge for the specified MBean.longDeprecated.As of JMX 1.2, replaced bygetDerivedGaugeTimeStamp(ObjectName)longgetDerivedGaugeTimeStamp(ObjectName object) Gets the derived gauge timestamp for the specified MBean.booleanGets the differing notification's on/off switch value.booleanGets the matching notification's on/off switch value.Gets the string to compare with the observed attribute.voidsetNotifyDiffer(boolean value) Sets the differing notification's on/off switch value.voidsetNotifyMatch(boolean value) Sets the matching notification's on/off switch value.voidsetStringToCompare(String value) Sets the string to compare with the observed attribute.Methods declared in interface MonitorMBean
addObservedObject, containsObservedObject, getGranularityPeriod, getObservedAttribute, getObservedObject, getObservedObjects, isActive, removeObservedObject, setGranularityPeriod, setObservedAttribute, setObservedObject, start, stopModifier and TypeMethodDescriptionvoidaddObservedObject(ObjectName object) Adds the specified object in the set of observed MBeans.booleancontainsObservedObject(ObjectName object) Tests whether the specified object is in the set of observed MBeans.longGets the granularity period (in milliseconds).Gets the attribute being observed.Deprecated.As of JMX 1.2, replaced byMonitorMBean.getObservedObjects()Returns an array containing the objects being observed.booleanisActive()Tests if the monitor MBean is active.voidremoveObservedObject(ObjectName object) Removes the specified object from the set of observed MBeans.voidsetGranularityPeriod(long period) Sets the granularity period (in milliseconds).voidsetObservedAttribute(String attribute) Sets the attribute to observe.voidsetObservedObject(ObjectName object) Deprecated.As of JMX 1.2, replaced byMonitorMBean.addObservedObject(ObjectName)voidstart()Starts the monitor.voidstop()Stops the monitor.
-
Method Details
-
getDerivedGauge
Deprecated.As of JMX 1.2, replaced bygetDerivedGauge(ObjectName)Gets the derived gauge.- Returns:
- The derived gauge.
-
getDerivedGaugeTimeStamp
Deprecated.As of JMX 1.2, replaced bygetDerivedGaugeTimeStamp(ObjectName)Gets the derived gauge timestamp.- Returns:
- The derived gauge timestamp.
-
getDerivedGauge
Gets the derived gauge for the specified MBean.- Parameters:
object- the MBean for which the derived gauge is to be returned- Returns:
- The derived gauge for the specified MBean if this MBean is in the
set of observed MBeans, or
nullotherwise.
-
getDerivedGaugeTimeStamp
Gets the derived gauge timestamp for the specified MBean.- Parameters:
object- the MBean for which the derived gauge timestamp is to be returned- Returns:
- The derived gauge timestamp for the specified MBean if this MBean
is in the set of observed MBeans, or
nullotherwise.
-
getStringToCompare
String getStringToCompare()Gets the string to compare with the observed attribute.- Returns:
- The string value.
- See Also:
-
setStringToCompare
Sets the string to compare with the observed attribute.- Parameters:
value- The string value.- Throws:
IllegalArgumentException- The specified string to compare is null.- See Also:
-
getNotifyMatch
boolean getNotifyMatch()Gets the matching notification's on/off switch value.- Returns:
trueif the string monitor notifies when matching,falseotherwise.- See Also:
-
setNotifyMatch
void setNotifyMatch(boolean value) Sets the matching notification's on/off switch value.- Parameters:
value- The matching notification's on/off switch value.- See Also:
-
getNotifyDiffer
boolean getNotifyDiffer()Gets the differing notification's on/off switch value.- Returns:
trueif the string monitor notifies when differing,falseotherwise.- See Also:
-
setNotifyDiffer
void setNotifyDiffer(boolean value) Sets the differing notification's on/off switch value.- Parameters:
value- The differing notification's on/off switch value.- See Also:
-
getDerivedGauge(ObjectName)