|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.management.NotificationBroadcasterSupport
javax.management.monitor.Monitor
javax.management.monitor.GaugeMonitor
public class GaugeMonitor
ゲージ属性の値を監視するように設計されたモニター MBean を定義します。
ゲージモニターは、時間の経過とともに変化する属性を監視します。ゲージモニターは、次のようにして通知を送信します。
threshold high notification が送信される。通知の上限フラグは true に設定する必要がある
threshold low notification が送信される。通知の下限フラグは true に設定する必要がある
ゲージ差分モードを使用している場合、派生ゲージの値は、連続した 2 回の観測によって得られた 2 つのゲージ値の差分として計算されます。
派生ゲージ値 (V[t]) は、次のようにして計算されます。
Byte、Integer、Short、Long、Float、Double) でなければなりません。
| フィールドの概要 |
|---|
| クラス javax.management.monitor.Monitor から継承されたフィールド |
|---|
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 のセットに含まれる場合、このオブジェクトの派生ゲージを取得します。 |
long |
getDerivedGaugeTimeStamp()
推奨されていません。 JMX 1.2 では getDerivedGaugeTimeStamp(ObjectName) で置換されます。 |
long |
getDerivedGaugeTimeStamp(ObjectName object)
指定のオブジェクトが監視対象の MBean のセットに含まれる場合、このオブジェクトの派生ゲージのタイムスタンプを取得します。 |
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 |
setGranularityPeriod(long period)
粒度の周期をミリ秒単位で設定します。 |
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, 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, setObservedAttribute, setObservedObject |
| コンストラクタの詳細 |
|---|
public GaugeMonitor()
| メソッドの詳細 |
|---|
public void start()
MonitorMBean 内の startMonitor 内の startpublic void stop()
MonitorMBean 内の stopMonitor 内の stop
public void setGranularityPeriod(long period)
throws IllegalArgumentException
MonitorMBean 内の setGranularityPeriodMonitor 内の setGranularityPeriodperiod - 粒度周期の値
IllegalArgumentException - 粒度周期がゼロ以下の場合Monitor.setGranularityPeriod(long)public Number getDerivedGauge(ObjectName object)
null を取得します。
GaugeMonitorMBean 内の getDerivedGaugeobject - MBean の名前
public long getDerivedGaugeTimeStamp(ObjectName object)
null を取得します。
GaugeMonitorMBean 内の getDerivedGaugeTimeStampobject - MBean の名前
@Deprecated public Number getDerivedGauge()
getDerivedGauge(ObjectName) で置換されます。
GaugeMonitorMBean 内の getDerivedGauge@Deprecated public long getDerivedGaugeTimeStamp()
getDerivedGaugeTimeStamp(ObjectName) で置換されます。
GaugeMonitorMBean 内の getDerivedGaugeTimeStamppublic Number getHighThreshold()
GaugeMonitorMBean 内の getHighThresholdpublic Number getLowThreshold()
GaugeMonitorMBean 内の getLowThreshold
public void setThresholds(Number highValue,
Number lowValue)
throws IllegalArgumentException
GaugeMonitorMBean 内の setThresholdshighValue - 上限値lowValue - 下限値
IllegalArgumentException - 上限および下限のしきい値として null が指定された場合、下限値が上限値より大きい場合、または上限値と下限値の型が異なる場合public boolean getNotifyHigh()
GaugeMonitorMBean 内の getNotifyHightrue、そうでない場合は falsesetNotifyHigh(boolean)public void setNotifyHigh(boolean value)
GaugeMonitorMBean 内の setNotifyHighvalue - 通知のオン/オフスイッチ値の上限値getNotifyHigh()public boolean getNotifyLow()
GaugeMonitorMBean 内の getNotifyLowtrue、そうでない場合は falsesetNotifyLow(boolean)public void setNotifyLow(boolean value)
GaugeMonitorMBean 内の setNotifyLowvalue - 通知のオン/オフスイッチ値の下限値getNotifyLow()public boolean getDifferenceMode()
GaugeMonitorMBean 内の getDifferenceModetrue、そうでない場合は falsesetDifferenceMode(boolean)public void setDifferenceMode(boolean value)
GaugeMonitorMBean 内の setDifferenceModevalue - 差分モードフラグ値getDifferenceMode()public MBeanNotificationInfo[] getNotificationInfo()
NotificationInfo オブジェクトを返します。
NotificationBroadcaster 内の getNotificationInfoNotificationBroadcasterSupport 内の getNotificationInfo
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。