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, 2014, Oracle and/or its affiliates. All rights reserved.