|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.management.NotificationBroadcasterSupport
javax.management.monitor.Monitor
javax.management.monitor.StringMonitor
public class StringMonitor
定义设计用于观察字符串属性值的监视器 MBean。
字符串监视器将根据以下情况发送通知:
匹配通知。必须将 notify match 标志设置为 true。不同通知。必须将 notify differ 标志设置为 true。
| 字段摘要 |
|---|
| 构造方法摘要 | |
|---|---|
StringMonitor()
默认构造方法。 |
|
| 方法摘要 | |
|---|---|
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()
返回一个 NotificationInfo 对象,它包含通知的 Java 类的名称和由字符串监视器发送的通知类型。 |
boolean |
getNotifyDiffer()
获取所有观察到的 MBeans 共同的不同通知的开/关切换值。 |
boolean |
getNotifyMatch()
获取所有观察到的 MBeans 共同的匹配通知的开/关切换值。 |
String |
getStringToCompare()
获取要与所有观察到的 MBeans 的共同 observed 属性进行比较的字符串。 |
void |
setNotifyDiffer(boolean value)
设置所有观察到的 MBeans 共同的不同通知的开/关切换值。 |
void |
setNotifyMatch(boolean value)
设置所有观察到的 MBeans 共同的匹配通知的开/关切换值。 |
void |
setStringToCompare(String value)
设置要与所有观察到的 MBeans 的共同 observed 属性进行比较的字符串。 |
void |
start()
启动字符串监视器。 |
void |
stop()
停止字符串监视器。 |
| 从类 javax.management.NotificationBroadcasterSupport 继承的方法 |
|---|
addNotificationListener, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 从接口 javax.management.monitor.MonitorMBean 继承的方法 |
|---|
addObservedObject, containsObservedObject, getGranularityPeriod, getObservedAttribute, getObservedObject, getObservedObjects, isActive, removeObservedObject, setGranularityPeriod, setObservedAttribute, setObservedObject |
| 构造方法详细信息 |
|---|
public StringMonitor()
| 方法详细信息 |
|---|
public void start()
MonitorMBean 中的 startMonitor 中的 startpublic void stop()
MonitorMBean 中的 stopMonitor 中的 stoppublic String getDerivedGauge(ObjectName object)
null。
StringMonitorMBean 中的 getDerivedGaugeobject - 需要其派生尺度的 MBean 的名称。
public long getDerivedGaugeTimeStamp(ObjectName object)
0。
StringMonitorMBean 中的 getDerivedGaugeTimeStampobject - 将返回其派生尺度时间戳的对象的名称。
@Deprecated public String getDerivedGauge()
getDerivedGauge(ObjectName) 取代
StringMonitorMBean 中的 getDerivedGauge@Deprecated public long getDerivedGaugeTimeStamp()
getDerivedGaugeTimeStamp(ObjectName) 取代
StringMonitorMBean 中的 getDerivedGaugeTimeStamppublic String getStringToCompare()
StringMonitorMBean 中的 getStringToComparesetStringToCompare(java.lang.String)
public void setStringToCompare(String value)
throws IllegalArgumentException
StringMonitorMBean 中的 setStringToComparevalue - 字符串值。
IllegalArgumentException - 要比较的指定字符串为 null。getStringToCompare()public boolean getNotifyMatch()
StringMonitorMBean 中的 getNotifyMatchtrue,否则返回 false。setNotifyMatch(boolean)public void setNotifyMatch(boolean value)
StringMonitorMBean 中的 setNotifyMatchvalue - 匹配通知的开/关切换值。getNotifyMatch()public boolean getNotifyDiffer()
StringMonitorMBean 中的 getNotifyDiffertrue,否则返回 false。setNotifyDiffer(boolean)public void setNotifyDiffer(boolean value)
StringMonitorMBean 中的 setNotifyDiffervalue - 不同通知的开/关切换值。getNotifyDiffer()public MBeanNotificationInfo[] getNotificationInfo()
NotificationInfo 对象,它包含通知的 Java 类的名称和由字符串监视器发送的通知类型。
NotificationBroadcaster 中的 getNotificationInfoNotificationBroadcasterSupport 中的 getNotificationInfo
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。