JavaTM Platform
Standard Ed. 6

javax.management.relation
クラス MBeanServerNotificationFilter

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

public class MBeanServerNotificationFilter
extends NotificationFilterSupport

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

このクラスの serialVersionUID2605900539589789736L です。

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

コンストラクタの概要
MBeanServerNotificationFilter()
          すべての ObjectName に対して、すべての MBeanServerNotification 通知を選択するフィルタを作成します。
 
メソッドの概要
 void disableAllObjectNames()
          すべての ObjectName の選択を解除して、MBeanServerNotification を無効にします。
 void disableObjectName(ObjectName objectName)
          指定された ObjectName に対して、MBeanServerNotification を無効にします。
 void enableAllObjectNames()
          すべての ObjectName を選択して、すべての MBeanServerNotification を有効にします。
 void enableObjectName(ObjectName objectName)
          指定された ObjectName に対して、MBeanServerNotification を有効にします。
 Vector<ObjectName> getDisabledObjectNames()
          無効なすべての ObjectName を取得します。
 Vector<ObjectName> getEnabledObjectNames()
          有効なすべての ObjectName を取得します。
 boolean isNotificationEnabled(Notification notif)
          リスナーへの特定の通知の送信前に呼び出されます。
 
クラス 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 objectName)
                       throws IllegalArgumentException
指定された ObjectName に対して、MBeanServerNotification を無効にします。

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

enableAllObjectNames

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


enableObjectName

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

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

getEnabledObjectNames

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

戻り値:
ObjectNameのベクトル:

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

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


getDisabledObjectNames

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

戻り値:
ObjectNameのベクトル:

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

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


isNotificationEnabled

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

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

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

かつ

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

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

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

JavaTM Platform
Standard Ed. 6

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

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