public class StringMonitor extends Monitor implements StringMonitorMBean
文字列モニターは次のようにして通知を送信します。
match notification
が送信されます。 通知一致フラグはtrue
に設定する必要があります。 differ notification
が送信されます。 通知差分フラグはtrue
に設定する必要があります。 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のセットに含まれる場合、このオブジェクトの派生ゲージを取得します。そうでない場合は
null を取得します。 |
long |
getDerivedGaugeTimeStamp() |
非推奨。
JMX 1.2以降は、
getDerivedGaugeTimeStamp(ObjectName) に置き換えられています。 |
long |
getDerivedGaugeTimeStamp(ObjectName object) |
指定のオブジェクトが監視対象のMBeanのセットに含まれる場合、このオブジェクトの派生ゲージのタイムスタンプを取得します。そうでない場合は
0 を取得します。 |
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() |
文字列モニターを停止します。
|
addObservedObject, containsObservedObject, getGranularityPeriod, getObservedAttribute, getObservedObject, getObservedObjects, isActive, postDeregister, postRegister, preDeregister, preRegister, removeObservedObject, setGranularityPeriod, setObservedAttribute, setObservedObject
addNotificationListener, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addObservedObject, containsObservedObject, getGranularityPeriod, getObservedAttribute, getObservedObject, getObservedObjects, isActive, removeObservedObject, setGranularityPeriod, setObservedAttribute, setObservedObject
public void start()
start
、インタフェースMonitorMBean
start
、クラスMonitor
public void stop()
stop
、インタフェースMonitorMBean
stop
、クラスMonitor
public String getDerivedGauge(ObjectName object)
null
を取得します。getDerivedGauge
、インタフェースStringMonitorMBean
object
- MBeanの名前。このMBeanの派生ゲージが要求される。public long getDerivedGaugeTimeStamp(ObjectName object)
0
を取得します。getDerivedGaugeTimeStamp
、インタフェースStringMonitorMBean
object
- オブジェクトの名前。このオブジェクトの派生ゲージのタイムスタンプが返される。@Deprecated public String getDerivedGauge()
getDerivedGauge(ObjectName)
に置き換えられています。 getDerivedGauge
、インタフェースStringMonitorMBean
@Deprecated public long getDerivedGaugeTimeStamp()
getDerivedGaugeTimeStamp(ObjectName)
に置き換えられています。 getDerivedGaugeTimeStamp
、インタフェースStringMonitorMBean
public String getStringToCompare()
getStringToCompare
、インタフェースStringMonitorMBean
setStringToCompare(java.lang.String)
public void setStringToCompare(String value) throws IllegalArgumentException
setStringToCompare
、インタフェースStringMonitorMBean
value
- 文字列値。IllegalArgumentException
- 比較のために指定された文字列がnullの場合。getStringToCompare()
public boolean getNotifyMatch()
getNotifyMatch
、インタフェースStringMonitorMBean
true
、そうでない場合はfalse
。setNotifyMatch(boolean)
public void setNotifyMatch(boolean value)
setNotifyMatch
、インタフェースStringMonitorMBean
value
- 一致通知のオン/オフ・スイッチ値。getNotifyMatch()
public boolean getNotifyDiffer()
getNotifyDiffer
、インタフェースStringMonitorMBean
true
、そうでない場合はfalse
。setNotifyDiffer(boolean)
public void setNotifyDiffer(boolean value)
setNotifyDiffer
、インタフェースStringMonitorMBean
value
- 差分通知のオン/オフ・スイッチ値。getNotifyDiffer()
public MBeanNotificationInfo[] getNotificationInfo()
NotificationInfo
オブジェクトを返します。getNotificationInfo
、インタフェースNotificationBroadcaster
getNotificationInfo
、クラスNotificationBroadcasterSupport
バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。