JavaTM 2 Platform
Standard Ed. 5.0

javax.management.relation
クラス MBeanServerNotificationFilter

java.lang.Object
  上位を拡張 javax.management.NotificationFilterSupport
      上位を拡張 javax.management.relation.MBeanServerNotificationFilter
すべての実装されたインタフェース:
Serializable, NotificationFilter

public class MBeanServerNotificationFilter
extends NotificationFilterSupport

MBeanServerNotification のフィルタです。このフィルタは、通知型に対応する対象となる ObjectName とオペレーション (登録、登録解除、またはその両方) を選択して、MBeanServerNotification 通知をフィルタリングします。

導入されたバージョン:
1.5
関連項目:
直列化された形式

コンストラクタの概要
MBeanServerNotificationFilter()
          すべての ObjectName に対して、すべての MBeanServerNotification 通知を選択するフィルタを作成します。
 
メソッドの概要
 void disableAllObjectNames()
          すべての ObjectName の選択を解除して、MBeanServerNotification を無効にします。
 void disableObjectName(ObjectName theObjName)
          指定された ObjectName に対して、MBeanServerNotification を無効にします。
 void enableAllObjectNames()
          すべての ObjectName を選択して、すべての MBeanServerNotification を有効にします。
 void enableObjectName(ObjectName theObjName)
          指定された ObjectName に対して、MBeanServerNotification を有効にします。
 Vector getDisabledObjectNames()
          無効なすべての ObjectName を取得します。
 Vector getEnabledObjectNames()
          有効なすべての ObjectName を取得します。
 boolean isNotificationEnabled(Notification theNtf)
          リスナーへの特定の通知の送信前に呼び出されます。
 
クラス javax.management.NotificationFilterSupport から継承されたメソッド
disableAllTypes, disableType, enableType, getEnabledTypes
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

MBeanServerNotificationFilter

public MBeanServerNotificationFilter()
すべての ObjectName に対して、すべての MBeanServerNotification 通知を選択するフィルタを作成します。

メソッドの詳細

disableAllObjectNames

public void disableAllObjectNames()
すべての ObjectName の選択を解除して、MBeanServerNotification を無効にします。


disableObjectName

public void disableObjectName(ObjectName theObjName)
                       throws IllegalArgumentException
指定された ObjectName に対して、MBeanServerNotification を無効にします。

パラメータ:
theObjName - 対象外になった ObjectName
例外:
IllegalArgumentException - 指定された ObjectName が null の場合

enableAllObjectNames

public void enableAllObjectNames()
すべての ObjectName を選択して、すべての MBeanServerNotification を有効にします。


enableObjectName

public void enableObjectName(ObjectName theObjName)
                      throws IllegalArgumentException
指定された ObjectName に対して、MBeanServerNotification を有効にします。

パラメータ:
theObjName - 対 象となる ObjectName
例外:
IllegalArgumentException - 指定された ObjectName が null の場合

getEnabledObjectNames

public Vector getEnabledObjectNames()
有効なすべての ObjectName を取得します。

戻り値:
ObjectName のベクトル:

- null の場合、明示的に選択解除されたものを除くすべての ObjectName が暗黙的に選択される

- 空の場合、すべての ObjectName の選択が解除される。つまり選択されている ObjectName はなくなる


getDisabledObjectNames

public Vector getDisabledObjectNames()
無効なすべての ObjectName を取得します。

戻り値:
ObjectName のベクトル:

- null の場合、明示的に選択されたものを除くすべての ObjectName の選択が暗黙的に解除される

- 空の場合、すべての ObjectName が選択される。つまり選択解除されている ObjectName はなくなる


isNotificationEnabled

public boolean isNotificationEnabled(Notification theNtf)
                              throws IllegalArgumentException
リスナーへの特定の通知の送信前に呼び出されます。

次の条件が成立する場合:

- 問題の MBean の ObjectName が選択 (明示的に、もしくは暗黙的に (つまり明示的に選択解除されていない)) されている場合

かつ

- オペレーション (登録または登録解除) の型が選択されている場合

リスナーに通知が送信されます。

定義:
インタフェース NotificationFilter 内の isNotificationEnabled
オーバーライド:
クラス NotificationFilterSupport 内の isNotificationEnabled
パラメータ:
theNtf - 送信さ れる通知
戻り値:
通知をリスナーに送 信する必要がある場合は true、そうでない場合は false
例外:
IllegalArgumentException - パラメータが null の場合

JavaTM 2 Platform
Standard Ed. 5.0

バグの報告と機能のリクエスト
さらに詳しい API リファレンスおよび開発者ドキュメントについては、Java 2 SDK SE 開発者用ドキュメントを参照してください。開発者向けの詳細な解説、概念の概要、用語の定義、バグの回避策、およびコード実例が含まれています。

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。