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, 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 String getDerivedGauge(ObjectName object)
nullを取得します。getDerivedGauge、インタフェースStringMonitorMBeanobject - MBeanの名前。このMBeanの派生ゲージが要求される。public long getDerivedGaugeTimeStamp(ObjectName object)
0を取得します。getDerivedGaugeTimeStamp、インタフェースStringMonitorMBeanobject - オブジェクトの名前。このオブジェクトの派生ゲージのタイムスタンプが返される。@Deprecated public String getDerivedGauge()
getDerivedGauge(ObjectName)に置き換えられています。 getDerivedGauge、インタフェースStringMonitorMBean@Deprecated public long getDerivedGaugeTimeStamp()
getDerivedGaugeTimeStamp(ObjectName)に置き換えられています。 getDerivedGaugeTimeStamp、インタフェースStringMonitorMBeanpublic String getStringToCompare()
getStringToCompare、インタフェースStringMonitorMBeansetStringToCompare(java.lang.String)public void setStringToCompare(String value) throws IllegalArgumentException
setStringToCompare、インタフェースStringMonitorMBeanvalue - 文字列値。IllegalArgumentException - 比較のために指定された文字列がnullの場合。getStringToCompare()public boolean getNotifyMatch()
getNotifyMatch、インタフェースStringMonitorMBeantrue、そうでない場合はfalse。setNotifyMatch(boolean)public void setNotifyMatch(boolean value)
setNotifyMatch、インタフェースStringMonitorMBeanvalue - 一致通知のオン/オフ・スイッチ値。getNotifyMatch()public boolean getNotifyDiffer()
getNotifyDiffer、インタフェースStringMonitorMBeantrue、そうでない場合はfalse。setNotifyDiffer(boolean)public void setNotifyDiffer(boolean value)
setNotifyDiffer、インタフェースStringMonitorMBeanvalue - 差分通知のオン/オフ・スイッチ値。getNotifyDiffer()public MBeanNotificationInfo[] getNotificationInfo()
NotificationInfoオブジェクトを返します。getNotificationInfo、インタフェースNotificationBroadcastergetNotificationInfo、クラスNotificationBroadcasterSupport バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。 そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Documentation Redistribution Policyも参照してください。