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)
获取指定对象的派生表,如果该对象包含在观察MBeans的集合,或
null否则。
|
long |
getDerivedGaugeTimeStamp()
过时的。
作为JMX 1.2,取而代之的
getDerivedGaugeTimeStamp(ObjectName)
|
long |
getDerivedGaugeTimeStamp(ObjectName object)
获取派生表的时间戳指定对象,如果该对象包含在观察MBeans的集合,或
0否则。
|
MBeanNotificationInfo[] |
getNotificationInfo()
返回一个包含该通知由字符串监视器发送的通知类型的java类的名称
NotificationInfo对象。
|
boolean |
getNotifyDiffer()
得到不同通知的开关值,所有观察到的MBeans常见。
|
boolean |
getNotifyMatch()
获取匹配的通知的开关值,所有观察到的MBeans常见。
|
String |
getStringToCompare()
获取与所观察到的属性共同所有观察到的MBeans比较字符串。
|
void |
setNotifyDiffer(boolean value)
设置不同的通知的开关值,所有观察到的MBeans常见。
|
void |
setNotifyMatch(boolean value)
集匹配通知的开关值,所有观察到的MBeans常见。
|
void |
setStringToCompare(String value)
设置与所观察到的属性共同所有观察到的MBeans比较字符串。
|
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否则。
getDerivedGauge 接口
StringMonitorMBean
object - MBean的源表所需的名字。
public long getDerivedGaugeTimeStamp(ObjectName object)
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 -指定字符串比较是无效的。
getStringToCompare()
public boolean getNotifyMatch()
getNotifyMatch 接口
StringMonitorMBean
true如果字符串匹配时,班长通知比较字符串,
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对象。
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.