|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.management.NotificationBroadcasterSupport
javax.management.monitor.Monitor
javax.management.monitor.StringMonitor
public class StringMonitor
文字列属性の値を監視するように設計されたモニター MBean を定義します。
文字列モニターは次のようにして通知を送信します。
match notification が送信される。通知一致フラグは true に設定する必要がある。differ notification が送信される。通知差分フラグは true に設定する必要がある。
| フィールドの概要 |
|---|
| クラス 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 |
| コンストラクタの概要 | |
|---|---|
StringMonitor()
デフォルトのコンストラクタです。 |
|
| メソッドの概要 | |
|---|---|
String |
getDerivedGauge()
推奨されていません。 JMX 1.2 以降、 getDerivedGauge(ObjectName) で置換されています。 |
String |
getDerivedGauge(ObjectName object)
指定のオブジェクトが監視対象の MBean のセットに含まれる場合、このオブジェクトの派生ゲージを取得します。 |
long |
getDerivedGaugeTimeStamp()
推奨されていません。 JMX 1.2 以降は getDerivedGaugeTimeStamp(ObjectName) で置換されています。 |
long |
getDerivedGaugeTimeStamp(ObjectName object)
指定のオブジェクトが監視対象の MBean のセットに含まれる場合、このオブジェクトの派生ゲージのタイムスタンプを取得します。 |
MBeanNotificationInfo[] |
getNotificationInfo()
通知の Java クラス名と、文字列モニターによって送信される通知型を含む NotificationInfo オブジェクトを返します。 |
boolean |
getNotifyDiffer()
監視対象の MBean すべてに共通の差分通知のオン/オフスイッチ値を取得します。 |
boolean |
getNotifyMatch()
監視対象の MBean すべてに共通の一致通知のオン/オフスイッチ値を取得します。 |
String |
getStringToCompare()
監視対象の MBean すべてに共通の監視対象属性と比較する文字列を取得します。 |
void |
setNotifyDiffer(boolean value)
監視対象の MBean すべてに共通の差分通知のオン/オフスイッチ値を設定します。 |
void |
setNotifyMatch(boolean value)
監視対象の MBean すべてに共通の一致通知のオン/オフスイッチ値を設定します。 |
void |
setStringToCompare(String value)
監視対象の 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 StringMonitor()
| メソッドの詳細 |
|---|
public void start()
MonitorMBean 内の startMonitor 内の startpublic void stop()
MonitorMBean 内の stopMonitor 内の stoppublic String getDerivedGauge(ObjectName object)
null を取得します。
StringMonitorMBean 内の getDerivedGaugeobject - MBean の名前。この MBean の派生ゲージが要求される
public long getDerivedGaugeTimeStamp(ObjectName object)
0 を取得します。
StringMonitorMBean 内の getDerivedGaugeTimeStampobject - オブジェクトの名前。 このオブジェクトの派生ゲージのタイムスタンプが返される
@Deprecated public String getDerivedGauge()
getDerivedGauge(ObjectName) で置換されています。
StringMonitorMBean 内の getDerivedGauge@Deprecated public long getDerivedGaugeTimeStamp()
getDerivedGaugeTimeStamp(ObjectName) で置換されています。
StringMonitorMBean 内の getDerivedGaugeTimeStamppublic String getStringToCompare()
StringMonitorMBean 内の getStringToComparesetStringToCompare(java.lang.String)
public void setStringToCompare(String value)
throws IllegalArgumentException
StringMonitorMBean 内の setStringToComparevalue - 文字列値
IllegalArgumentException - 比較のために指定された 文字列が null の場合getStringToCompare()public boolean getNotifyMatch()
StringMonitorMBean 内の getNotifyMatchtrue、 そうでない場合は falsesetNotifyMatch(boolean)public void setNotifyMatch(boolean value)
StringMonitorMBean 内の setNotifyMatchvalue - 一致通知のオン/オフスイッチ値getNotifyMatch()public boolean getNotifyDiffer()
StringMonitorMBean 内の getNotifyDiffertrue、 そうでない場合は falsesetNotifyDiffer(boolean)public void setNotifyDiffer(boolean value)
StringMonitorMBean 内の setNotifyDiffervalue - 差分通知のオン/オフスイッチ値getNotifyDiffer()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 も参照してください。