|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjavax.management.NotificationBroadcasterSupport
javax.management.monitor.Monitor
javax.management.monitor.GaugeMonitor
public class GaugeMonitor
定義專門用來觀察尺度屬性值的監視器 MBean。
尺度監視器觀察隨著時間發展而不斷變化的屬性。尺度監視器將根據以下情況發送通知:
閾值過高通知。必須將 notify high 標誌設置為 true。
閾值過低通知。必須將 notify low 標誌設置為 true。
如果使用了尺度差分網要,則派生的尺度值將被視為兩次連續觀察到的觀察尺度值之間的差分。
派生的尺度值 (V[t]) 是使用以下方法計算的:
Byte、Integer、Short、Long、Float 和 Double)。
| 欄位摘要 |
|---|
| 建構子摘要 | |
|---|---|
GaugeMonitor()
預設的建構子。 |
|
| 方法摘要 | |
|---|---|
Number |
getDerivedGauge()
已過時。 從 JMX 1.2 開始,由 getDerivedGauge(ObjectName) 取代 |
Number |
getDerivedGauge(ObjectName object)
如果指定的物件包含在所觀察的 MBeans 集中,則獲取此物件派生的尺度,否則將為 null。 |
long |
getDerivedGaugeTimeStamp()
已過時。 從 JMX 1.2 開始,由 getDerivedGaugeTimeStamp(ObjectName) 取代 |
long |
getDerivedGaugeTimeStamp(ObjectName object)
如果指定的物件包含在所觀察的 MBeans 集中,則獲取此物件的派生尺度的時間戳,否則將為 0。 |
boolean |
getDifferenceMode()
獲取所有觀察到的 MBean 的公共差分網要標誌值。 |
Number |
getHighThreshold()
獲取所有所觀察的 MBean 的公共高閾值。 |
Number |
getLowThreshold()
獲取所有觀察到的 MBean 的公共低閾值。 |
MBeanNotificationInfo[] |
getNotificationInfo()
返回一個 NotificationInfo 物件,它包含通知的 Java 類別的名稱和由尺度監視器發送的通知型別。 |
boolean |
getNotifyHigh()
獲取所有觀察到的 MBean 的公共高閾值通知 (high notification) 的開/關切換值。 |
boolean |
getNotifyLow()
獲取所有觀察到的 MBean 的公共低閾值通知 (low notification) 的開/關切換值。 |
void |
setDifferenceMode(boolean value)
設置所有觀察到的 MBean 的公共差分網要標誌值。 |
void |
setNotifyHigh(boolean value)
設置所有觀察到的 MBean 的公共高閾值通知的開/關切換值。 |
void |
setNotifyLow(boolean value)
設置所有觀察到的 MBean 的公共低閾值通知的開/關切換值。 |
void |
setThresholds(Number highValue,
Number lowValue)
設置所有觀察到的 MBean 的公共高、低閾值。 |
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 GaugeMonitor()
| 方法詳細資訊 |
|---|
public void start()
MonitorMBean 中的 startMonitor 中的 startpublic void stop()
MonitorMBean 中的 stopMonitor 中的 stoppublic Number getDerivedGauge(ObjectName object)
null。
GaugeMonitorMBean 中的 getDerivedGaugeobject - MBean 的名稱。
public long getDerivedGaugeTimeStamp(ObjectName object)
0。
GaugeMonitorMBean 中的 getDerivedGaugeTimeStampobject - 將返回其派生尺度時間戳的物件的名稱。
@Deprecated public Number getDerivedGauge()
getDerivedGauge(ObjectName) 取代
GaugeMonitorMBean 中的 getDerivedGauge@Deprecated public long getDerivedGaugeTimeStamp()
getDerivedGaugeTimeStamp(ObjectName) 取代
GaugeMonitorMBean 中的 getDerivedGaugeTimeStamppublic Number getHighThreshold()
GaugeMonitorMBean 中的 getHighThresholdsetThresholds(java.lang.Number, java.lang.Number)public Number getLowThreshold()
GaugeMonitorMBean 中的 getLowThresholdsetThresholds(java.lang.Number, java.lang.Number)
public void setThresholds(Number highValue,
Number lowValue)
throws IllegalArgumentException
GaugeMonitorMBean 中的 setThresholdshighValue - 高閾值。lowValue - 低閾值。
IllegalArgumentException - 指定的高/低閾值為 null,或者低閾值大於高閾值,或者高、低閾值不屬於同一型別。getHighThreshold(),
getLowThreshold()public boolean getNotifyHigh()
GaugeMonitorMBean 中的 getNotifyHightrue,否則返回 false。setNotifyHigh(boolean)public void setNotifyHigh(boolean value)
GaugeMonitorMBean 中的 setNotifyHighvalue - 高閾值通知的開/關切換值。getNotifyHigh()public boolean getNotifyLow()
GaugeMonitorMBean 中的 getNotifyLowtrue,否則返回 false。setNotifyLow(boolean)public void setNotifyLow(boolean value)
GaugeMonitorMBean 中的 setNotifyLowvalue - 低閾值通知的開/關切換值。getNotifyLow()public boolean getDifferenceMode()
GaugeMonitorMBean 中的 getDifferenceModetrue;否則返回 false。setDifferenceMode(boolean)public void setDifferenceMode(boolean value)
GaugeMonitorMBean 中的 setDifferenceModevalue - 差分網要標誌值。getDifferenceMode()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。