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
.
Modifier and Type | Class and Description |
---|---|
pack-priv static class |
Modifier and Type | Field and Description |
---|---|
private static final int | |
private static final int | |
private static final int | |
private static final MBeanNotificationInfo[] | |
private boolean | notifyDiffer
Flag indicating if the string monitor notifies when differing from the string to compare. |
private boolean | notifyMatch
Flag indicating if the string monitor notifies when matching the string to compare. |
private String | stringToCompare
String to compare with the observed attribute. |
private static final String[] |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
pack-priv synchronized MonitorNotification | buildAlarmNotification(ObjectName object, String attribute, Comparable<?> value)
Overrides javax.
|
pack-priv Monitor. | createObservedObject(ObjectName object)
Overrides javax. Factory method for ObservedObject creation. |
public synchronized String | Returns: The derived gauge of the specified object.the name of the MBean whose derived gauge is required. object)Overrides javax. Implements javax. Gets the derived gauge of the specified object, if this object is
contained in the set of observed MBeans, or |
public synchronized String | Returns: The derived gauge.Implements javax.
Deprecated
As of JMX 1.2, replaced by
getDerivedGauge(ObjectName)
Returns the derived gauge of the first object in the set of observed MBeans. |
public synchronized long | Returns: The derived gauge timestamp of the specified object.the name of the object whose derived gauge
timestamp is to be returned. object)Overrides javax. Implements javax. Gets the derived gauge timestamp of the specified object, if
this object is contained in the set of observed MBeans, or
|
public synchronized long | Returns: The derived gauge timestamp.Implements javax.
Deprecated
As of JMX 1.2, replaced by
getDerivedGaugeTimeStamp(ObjectName)
Gets the derived gauge timestamp of the first object in the set of observed MBeans. |
public MBeanNotificationInfo[] | getNotificationInfo()
Overrides javax. Implements javax. Returns a |
public synchronized boolean | Returns: true if the string monitor notifies when
differing from the string to compare, false otherwise.Implements javax. Gets the differing notification's on/off switch value common to all observed MBeans. |
public synchronized boolean | Returns: true if the string monitor notifies when
matching the string to compare, false otherwise.Implements javax. Gets the matching notification's on/off switch value common to all observed MBeans. |
public synchronized String | Returns: The string value.Implements javax. Gets the string to compare with the observed attribute common to all observed MBeans. |
pack-priv synchronized boolean | isComparableTypeValid(ObjectName object, String attribute, Comparable<?> value)
Overrides javax. Check that the type of the supplied observed attribute value is one of the value types supported by this monitor. |
pack-priv synchronized void | onErrorNotification(MonitorNotification notification)
Overrides javax.
|
public synchronized void | setNotifyDiffer(boolean
The differing notification's on/off switch value. value)Implements javax. Sets the differing notification's on/off switch value common to all observed MBeans. |
public synchronized void | setNotifyMatch(boolean
The matching notification's on/off switch value. value)Implements javax. Sets the matching notification's on/off switch value common to all observed MBeans. |
public synchronized void | setStringToCompare(String
The string value. value)Implements javax. Sets the string to compare with the observed attribute common to all observed MBeans. |
public synchronized void | start()
Implements abstract javax. Implements javax. Starts the string monitor. |
public synchronized void | stop()
Implements abstract javax. Implements javax. Stops the string monitor. |
DIFFERING | back to summary |
---|---|
private static final int DIFFERING |
MATCHING | back to summary |
---|---|
private static final int MATCHING |
MATCHING_OR_DIFFERING | back to summary |
---|---|
private static final int MATCHING_OR_DIFFERING |
notifsInfo | back to summary |
---|---|
private static final MBeanNotificationInfo[] notifsInfo |
notifyDiffer | back to summary |
---|---|
private boolean notifyDiffer Flag indicating if the string monitor notifies when differing
from the string to compare.
|
notifyMatch | back to summary |
---|---|
private boolean notifyMatch Flag indicating if the string monitor notifies when matching
the string to compare.
|
stringToCompare | back to summary |
---|---|
private String stringToCompare String to compare with the observed attribute.
|
types | back to summary |
---|---|
private static final String[] types |
StringMonitor | back to summary |
---|---|
public StringMonitor() Default constructor. |
buildAlarmNotification | back to summary |
---|---|
pack-priv synchronized MonitorNotification buildAlarmNotification(ObjectName object, String attribute, Comparable<?> value) Overrides javax.
|
createObservedObject | back to summary |
---|---|
pack-priv Monitor. Overrides javax. Factory method for ObservedObject creation.
|
getDerivedGauge | back to summary |
---|---|
public synchronized String getDerivedGauge(ObjectName object) Overrides javax. Implements javax. Gets the derived gauge of the specified object, if this object is
contained in the set of observed MBeans, or
|
getDerivedGauge | back to summary |
---|---|
public synchronized String getDerivedGauge() Implements javax. Deprecated As of JMX 1.2, replaced by
Returns the derived gauge of the first object in the set of observed MBeans.
|
getDerivedGaugeTimeStamp | back to summary |
---|---|
public synchronized long getDerivedGaugeTimeStamp(ObjectName object) Overrides javax. Implements javax. Gets the derived gauge timestamp of the specified object, if
this object is contained in the set of observed MBeans, or
|
getDerivedGaugeTimeStamp | back to summary |
---|---|
public synchronized long getDerivedGaugeTimeStamp() Implements javax. Deprecated As of JMX 1.2, replaced by
Gets the derived gauge timestamp of the first object in the set of observed MBeans.
|
getNotificationInfo | back to summary |
---|---|
public MBeanNotificationInfo[] getNotificationInfo() Overrides javax. Implements javax. Returns a
|
getNotifyDiffer | back to summary |
---|---|
public synchronized boolean getNotifyDiffer() Implements javax. Gets the differing notification's on/off switch value common to all observed MBeans.
|
getNotifyMatch | back to summary |
---|---|
public synchronized boolean getNotifyMatch() Implements javax. Gets the matching notification's on/off switch value common to all observed MBeans.
|
getStringToCompare | back to summary |
---|---|
public synchronized String getStringToCompare() Implements javax. Gets the string to compare with the observed attribute common to all observed MBeans.
|
isComparableTypeValid | back to summary |
---|---|
pack-priv synchronized boolean isComparableTypeValid(ObjectName object, String attribute, Comparable<?> value) Overrides javax. Check that the type of the supplied observed attribute value is one of the value types supported by this monitor.
|
onErrorNotification | back to summary |
---|---|
pack-priv synchronized void onErrorNotification(MonitorNotification notification) Overrides javax.
|
setNotifyDiffer | back to summary |
---|---|
public synchronized void setNotifyDiffer(boolean value) Implements javax. Sets the differing notification's on/off switch value common to all observed MBeans.
|
setNotifyMatch | back to summary |
---|---|
public synchronized void setNotifyMatch(boolean value) Implements javax. Sets the matching notification's on/off switch value common to all observed MBeans.
|
setStringToCompare | back to summary |
---|---|
public synchronized void setStringToCompare(String value) throws IllegalArgumentException Implements javax. Sets the string to compare with the observed attribute common to all observed MBeans.
|
start | back to summary |
---|---|
public synchronized void start() Implements abstract javax. Implements javax. Starts the string monitor. |
stop | back to summary |
---|---|
public synchronized void stop() Implements abstract javax. Implements javax. Stops the string monitor. |
Modifier and Type | Field and Description |
---|---|
private int |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public final synchronized int | |
public final synchronized void |
status | back to summary |
---|---|
private int status |
StringMonitorObservedObject | back to summary |
---|---|
public StringMonitorObservedObject(ObjectName observedObject) |
getStatus | back to summary |
---|---|
public final synchronized int getStatus() |
setStatus | back to summary |
---|---|
public final synchronized void setStatus(int status) |