Home » openjdk-7 » javax » management » monitor » [javadoc | source]
javax.management.monitor
public class: StringMonitor [javadoc | source]
java.lang.Object
   javax.management.NotificationBroadcasterSupport
      javax.management.monitor.Monitor
         javax.management.monitor.StringMonitor

All Implemented Interfaces:
    StringMonitorMBean, MonitorMBean, MBeanRegistration, NotificationEmitter

Defines a monitor MBean designed to observe the values of a string attribute.

A string monitor sends notifications as follows:

Nested Class Summary:
static class  StringMonitor.StringMonitorObservedObject   
Fields inherited from javax.management.monitor.Monitor:
capacityIncrement,  elementCount,  alreadyNotified,  alreadyNotifieds,  server,  RESET_FLAGS_ALREADY_NOTIFIED,  OBSERVED_OBJECT_ERROR_NOTIFIED,  OBSERVED_ATTRIBUTE_ERROR_NOTIFIED,  OBSERVED_ATTRIBUTE_TYPE_ERROR_NOTIFIED,  RUNTIME_ERROR_NOTIFIED,  dbgTag,  observedObjects,  THRESHOLD_ERROR_NOTIFIED,  INTEGER_ZERO
Constructor:
 public StringMonitor() 
Method from javax.management.monitor.StringMonitor Summary:
buildAlarmNotification,   createObservedObject,   getDerivedGauge,   getDerivedGauge,   getDerivedGaugeTimeStamp,   getDerivedGaugeTimeStamp,   getNotificationInfo,   getNotifyDiffer,   getNotifyMatch,   getStringToCompare,   isComparableTypeValid,   onErrorNotification,   setNotifyDiffer,   setNotifyMatch,   setStringToCompare,   start,   stop
Methods from javax.management.monitor.Monitor:
addObservedObject,   buildAlarmNotification,   buildErrorNotification,   classForType,   computeAlreadyNotifiedIndex,   containsObservedObject,   createAlreadyNotified,   createObservedObject,   doStart,   doStop,   getAttribute,   getComparableFromAttribute,   getDerivedGauge,   getDerivedGaugeFromComparable,   getDerivedGaugeTimeStamp,   getGranularityPeriod,   getObservedAttribute,   getObservedObject,   getObservedObject,   getObservedObjects,   isActive,   isAlreadyNotified,   isComparableTypeValid,   isThresholdTypeValid,   isValidForType,   onErrorNotification,   postDeregister,   postRegister,   preDeregister,   preRegister,   removeObservedObject,   resetAllAlreadyNotified,   resetAlreadyNotified,   setAlreadyNotified,   setGranularityPeriod,   setObservedAttribute,   setObservedObject,   start,   stop,   updateAlreadyNotified,   updateDeprecatedAlreadyNotified
Methods from javax.management.NotificationBroadcasterSupport:
addNotificationListener,   getNotificationInfo,   handleNotification,   removeNotificationListener,   removeNotificationListener,   sendNotification
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.management.monitor.StringMonitor Detail:
 synchronized MonitorNotification buildAlarmNotification(ObjectName object,
    String attribute,
    Comparable<?> value) 
 ObservedObject createObservedObject(ObjectName object) 
    Factory method for ObservedObject creation.
 public synchronized String getDerivedGauge() 
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 String getDerivedGauge(ObjectName object) 
    Gets the derived gauge of the specified object, if this object is contained in the set of observed MBeans, or null otherwise.
 public synchronized long getDerivedGaugeTimeStamp() 
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 synchronized long getDerivedGaugeTimeStamp(ObjectName object) 
    Gets the derived gauge timestamp of the specified object, if this object is contained in the set of observed MBeans, or 0 otherwise.
 public 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.
 public synchronized boolean getNotifyDiffer() 
    Gets the differing notification's on/off switch value common to all observed MBeans.
 public synchronized boolean getNotifyMatch() 
    Gets the matching notification's on/off switch value common to all observed MBeans.
 public synchronized String getStringToCompare() 
    Gets the string to compare with the observed attribute common to all observed MBeans.
 synchronized boolean isComparableTypeValid(ObjectName object,
    String attribute,
    Comparable<?> value) 
    Check that the type of the supplied observed attribute value is one of the value types supported by this monitor.
 synchronized  void onErrorNotification(MonitorNotification notification) 
 public synchronized  void setNotifyDiffer(boolean value) 
    Sets the differing notification's on/off switch value common to all observed MBeans.
 public synchronized  void setNotifyMatch(boolean value) 
    Sets the matching notification's on/off switch value common to all observed MBeans.
 public synchronized  void setStringToCompare(String value) throws IllegalArgumentException 
    Sets the string to compare with the observed attribute common to all observed MBeans.
 public synchronized  void start() 
    Starts the string monitor.
 public synchronized  void stop() 
    Stops the string monitor.