|
JavaTM 2 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.monitor.Monitor 繼承的方法 |
|---|
addObservedObject, containsObservedObject, getGranularityPeriod, getObservedAttribute, getObservedObject, getObservedObjects, isActive, postDeregister, postRegister, preDeregister, preRegister, removeObservedObject, setGranularityPeriod, setObservedAttribute, setObservedObject |
| 從類別 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 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。