|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
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 |
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、 そうでない場合は 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 Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。