public class StringMonitor extends Monitor implements StringMonitorMBean
字符串监视器发送通知如下:
match notification 。 通知匹配标志必须设置为true 。 differ notification 。 通知不同标志必须设置为true 。 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 and Description | 
|---|
| StringMonitor()
              默认构造函数。 
             | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getDerivedGauge() 
             已弃用 
               
              截至JMX 1.2,由 getDerivedGauge(ObjectName)替代 | 
| String | getDerivedGauge(ObjectName object)
              如果该对象包含在观察到的MBean集合中,则获取指定对象的派生规格,否则 
              nullnull。 | 
| long | getDerivedGaugeTimeStamp() 
             已弃用 
               
              截至JMX 1.2,由 getDerivedGaugeTimeStamp(ObjectName)替代 | 
| long | getDerivedGaugeTimeStamp(ObjectName object)
              如果此对象包含在观察到的MBean集合中,则获取指定对象的派生标尺时间戳,否则 
              00。 | 
| MBeanNotificationInfo[] | getNotificationInfo()
              返回一个 
              NotificationInfo对象,该对象包含通知的Java类的名称以及字符串监视器发送的通知类型。 | 
| boolean | getNotifyDiffer()
              获取所有观察到的MBean通用的不同通知的开关值。 
             | 
| boolean | getNotifyMatch()
              获取匹配通知的所有观察到的MBean通用的开/关开关值。 
             | 
| String | getStringToCompare()
              获取与所有观察到的MBean共有的观察属性进行比较的字符串。 
             | 
| void | setNotifyDiffer(boolean value)
              设置所有观察到的MBean通用的不同通知的开/关开关值。 
             | 
| void | setNotifyMatch(boolean value)
              设置匹配通知的所有观察到的MBean通用的开/关开关值。 
             | 
| void | setStringToCompare(String value)
              将字符串设置为与所有观察到的MBean共有的观察属性进行比较。 
             | 
| void | start()
              启动字符串监视器。 
             | 
| void | stop()
              停止字符串监视器。 
             | 
addObservedObject, containsObservedObject, getGranularityPeriod, getObservedAttribute, getObservedObject, getObservedObjects, isActive, postDeregister, postRegister, preDeregister, preRegister, removeObservedObject, setGranularityPeriod, setObservedAttribute, setObservedObjectaddNotificationListener, handleNotification, removeNotificationListener, removeNotificationListener, sendNotificationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddObservedObject, containsObservedObject, getGranularityPeriod, getObservedAttribute, getObservedObject, getObservedObjects, isActive, removeObservedObject, setGranularityPeriod, setObservedAttribute, setObservedObjectpublic void start()
start在界面 
            MonitorMBean 
           start在 
            Monitor 
           public void stop()
stop在界面 
            MonitorMBean 
           stop在类别 
            Monitor 
           public String getDerivedGauge(ObjectName object)
null null。 
          getDerivedGauge在界面 
            StringMonitorMBean 
           object - 需要派生量表的MBean的名称。 
           public long getDerivedGaugeTimeStamp(ObjectName object)
0 0。 
          getDerivedGaugeTimeStamp在界面 
            StringMonitorMBean 
           object - 要返回派生标尺时间戳的对象的名称。 
           @Deprecated public String getDerivedGauge()
getDerivedGauge(ObjectName)替代 
          getDerivedGauge在界面 
            StringMonitorMBean 
           @Deprecated public long getDerivedGaugeTimeStamp()
getDerivedGaugeTimeStamp(ObjectName)取代 
          getDerivedGaugeTimeStamp在界面 
            StringMonitorMBean 
           public String getStringToCompare()
getStringToCompare在界面 
            StringMonitorMBean 
           setStringToCompare(java.lang.String) 
           public void setStringToCompare(String value) throws IllegalArgumentException
setStringToCompare在界面 
            StringMonitorMBean 
           value - 字符串值。 
           IllegalArgumentException - 要比较的指定字符串为null。 
           getStringToCompare() 
           public boolean getNotifyMatch()
getNotifyMatch在界面 
            StringMonitorMBean 
           true如果字符串监视器在匹配要比较的字符串时通知, 
            false false。 
           setNotifyMatch(boolean) 
           public void setNotifyMatch(boolean value)
setNotifyMatch在界面 
            StringMonitorMBean 
           value - 匹配通知的开/关开关值。 
           getNotifyMatch() 
           public boolean getNotifyDiffer()
getNotifyDiffer在界面 
            StringMonitorMBean 
           true如果字符串监视器通知不同于要比较的字符串, 
            false否则。 
           setNotifyDiffer(boolean) 
           public void setNotifyDiffer(boolean value)
setNotifyDiffer在界面 
            StringMonitorMBean 
           value - 不同通知的开/关开关值。 
           getNotifyDiffer() 
           public MBeanNotificationInfo[] getNotificationInfo()
NotificationInfo对象,该对象包含通知的Java类的名称以及字符串监视器发送的通知类型。 
          getNotificationInfo在界面 
            NotificationBroadcaster 
           getNotificationInfo在类别 
            NotificationBroadcasterSupport 
            Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.