public class GaugeMonitor extends Monitor implements GaugeMonitorMBean
ゲージモニターは、時間の経過とともに変化する属性を監視します。ゲージモニターは、次のようにして通知を送信します。
threshold high  notification が送信されます。通知の上限フラグは true に設定する必要があります。
threshold low  notification が送信されます。通知の下限フラグは true に設定する必要があります。
 ゲージ差分モードを使用している場合、派生ゲージの値は、連続した 2 回の観測によって得られた 2 つのゲージ値の差分として計算されます。
派生ゲージの値 (V[t]) は、次のようにして計算されます。
 
Byte、Integer、Short、Long、Float、Double) である必要があります。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| コンストラクタと説明 | 
|---|
| GaugeMonitor()デフォルトのコンストラクタです。 | 
| 修飾子と型 | メソッドと説明 | 
|---|---|
| Number | getDerivedGauge()非推奨。 
 JMX 1.2 以降は、 getDerivedGauge(ObjectName)に置き換えられています。 | 
| Number | getDerivedGauge(ObjectName object)指定のオブジェクトが監視対象の MBean のセットに含まれる場合、このオブジェクトの派生ゲージを取得します。そうでない場合は  nullを取得します。 | 
| long | getDerivedGaugeTimeStamp()非推奨。 
 JMX 1.2 以降は、 getDerivedGaugeTimeStamp(ObjectName)に置き換えられています。 | 
| long | getDerivedGaugeTimeStamp(ObjectName object)指定のオブジェクトが監視対象の MBean のセットに含まれる場合、このオブジェクトの派生ゲージのタイムスタンプを取得します。そうでない場合は  0を取得します。 | 
| boolean | getDifferenceMode()監視対象の MBean すべてに共通の差分モードフラグ値を取得します。 | 
| Number | getHighThreshold()監視対象の MBean すべてに共通の上限値を取得します。 | 
| Number | getLowThreshold()監視対象の MBean すべてに共通の下限値を取得します。 | 
| MBeanNotificationInfo[] | getNotificationInfo()ゲージモニターによって送信される通知の Java クラス名と通知タイプを含む  NotificationInfoオブジェクトを返します。 | 
| boolean | getNotifyHigh()監視対象の MBean すべてに共通の通知のオン/オフスイッチ値の上限値を取得します。 | 
| boolean | getNotifyLow()監視対象の MBean 共通の通知のオン/オフスイッチ値の下限値を取得します。 | 
| 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()ゲージモニターを停止します。 | 
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、インタフェース: MonitorMBeanstart、クラス: Monitorpublic void stop()
stop、インタフェース: MonitorMBeanstop、クラス: Monitorpublic Number getDerivedGauge(ObjectName object)
null を取得します。getDerivedGauge、インタフェース: GaugeMonitorMBeanobject - MBean の名前。public long getDerivedGaugeTimeStamp(ObjectName object)
0 を取得します。getDerivedGaugeTimeStamp、インタフェース: GaugeMonitorMBeanobject - オブジェクトの名前。このオブジェクトの派生ゲージのタイムスタンプが返される。@Deprecated public Number getDerivedGauge()
getDerivedGauge(ObjectName) に置き換えられています。getDerivedGauge、インタフェース: GaugeMonitorMBean@Deprecated public long getDerivedGaugeTimeStamp()
getDerivedGaugeTimeStamp(ObjectName) に置き換えられています。getDerivedGaugeTimeStamp、インタフェース: GaugeMonitorMBeanpublic Number getHighThreshold()
getHighThreshold、インタフェース: GaugeMonitorMBeansetThresholds(java.lang.Number, java.lang.Number)public Number getLowThreshold()
getLowThreshold、インタフェース: GaugeMonitorMBeansetThresholds(java.lang.Number, java.lang.Number)public void setThresholds(Number highValue, Number lowValue) throws IllegalArgumentException
setThresholds、インタフェース: GaugeMonitorMBeanhighValue - 上限値。lowValue - 下限値。IllegalArgumentException - 上限および下限のしきい値として null が指定された場合、下限値が上限値より大きい場合、または上限値と下限値の型が異なる場合。getHighThreshold(), getLowThreshold()public boolean getNotifyHigh()
getNotifyHigh、インタフェース: GaugeMonitorMBeantrue、そうでない場合は false。setNotifyHigh(boolean)public void setNotifyHigh(boolean value)
setNotifyHigh、インタフェース: GaugeMonitorMBeanvalue - 通知のオン/オフスイッチ値の上限値。getNotifyHigh()public boolean getNotifyLow()
getNotifyLow、インタフェース: GaugeMonitorMBeantrue、そうでない場合は false。setNotifyLow(boolean)public void setNotifyLow(boolean value)
setNotifyLow、インタフェース: GaugeMonitorMBeanvalue - 通知のオン/オフスイッチ値の下限値。getNotifyLow()public boolean getDifferenceMode()
getDifferenceMode、インタフェース: GaugeMonitorMBeantrue、そうでない場合は false。setDifferenceMode(boolean)public void setDifferenceMode(boolean value)
setDifferenceMode、インタフェース: GaugeMonitorMBeanvalue - 差分モードフラグ値。getDifferenceMode()public MBeanNotificationInfo[] getNotificationInfo()
NotificationInfo オブジェクトを返します。getNotificationInfo、インタフェース: NotificationBroadcastergetNotificationInfo、クラス: NotificationBroadcasterSupport バグまたは機能を送信 
詳細な API リファレンスおよび開発者ドキュメントについては、Java SE のドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2013, Oracle and/or its affiliates. All rights reserved.