クラスMBeanServerNotificationFilter
java.lang.Object
javax.management.NotificationFilterSupport
javax.management.relation.MBeanServerNotificationFilter
- すべての実装されたインタフェース:
Serializable, NotificationFilter
public class MBeanServerNotificationFilter extends NotificationFilterSupport
MBeanServerNotificationのフィルタです。 ObjectNameとオペレーション(登録、登録解除、またはその両方)を選択して、MBeanServerNotification通知をフィルタリングします。
このクラスのserialVersionUIDは2605900539589789736Lです。
- 導入されたバージョン:
- 1.5
- 関連項目:
-
コンストラクタのサマリー
コンストラクタコンストラクタ説明すべてのObjectNameに対して、すべてのMBeanServerNotification通知を選択するフィルタを作成します。 -
メソッドのサマリー
修飾子と型メソッド説明voidすべてのObjectNameの選択を解除して、MBeanServerNotificationを無効にします。voiddisableObjectName(ObjectName objectName) 指定されたObjectNameに関するMBeanServerNotificationを無効にします。voidすべてのObjectNameを選択して、すべてのMBeanServerNotificationを有効にします。voidenableObjectName(ObjectName objectName) 指定されたObjectNameに関するMBeanServerNotificationを有効にします。無効なすべてのObjectNameを取得します。有効なすべてのObjectNameを取得します。boolean指定された通知をリスナーに送信する前に呼び出されます。クラスで宣言されたメソッド NotificationFilterSupport
disableAllTypes, disableType, enableType, getEnabledTypes修飾子と型メソッド説明voidすべての通知型を無効にします。voiddisableType(String prefix) 接頭辞リストから指定された接頭辞を削除します。voidenableType(String prefix) 特定の接頭辞で始まるすべての通知型の通知をリスナーに送信します。このフィルタ用に、すべての有効な通知型を取得します。クラスオブジェクトで宣言されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait修飾子と型メソッド説明protected Objectclone()このオブジェクトのコピーを作成して、返します。booleanこのオブジェクトと他のオブジェクトが等しいかどうかを示します。protected voidfinalize()削除予定のため非推奨: このAPI要素は、将来のバージョンで削除される可能性があります。最終決定は非推奨であり、将来のリリースで削除される可能性があります。final Class<?> getClass()このObjectの実行時クラスを返します。inthashCode()このオブジェクトに対するハッシュ・コード値を返します。final voidnotify()このオブジェクトのモニターで待機中のスレッドを1つ再開します。final voidこのオブジェクトのモニターで待機中のすべてのスレッドを再開します。toString()オブジェクトの文字列表現を返します。final voidwait()現在のスレッドが目覚めるまで待機します。通常、notifiedまたはinterruptedです。final voidwait(long timeoutMillis) 現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。final voidwait(long timeoutMillis, int nanos) 現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。
-
コンストラクタの詳細
-
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が選択(明示的に、もしくは暗黙的に(つまり明示的に選択解除されていない))されている場合
AND
- オペレーション(登録または登録解除)の型が選択されている場合
リスナーに通知が送信されます。
- 定義:
isNotificationEnabled、インタフェースNotificationFilter- オーバーライド:
isNotificationEnabled、クラスNotificationFilterSupport- パラメータ:
notif- 送信される通知。- 戻り値:
- 通知をリスナーに送信する必要がある場合はtrue、そうでない場合はfalse。
- スロー:
IllegalArgumentException- パラメータがnullの場合
-