java.lang.Object
javax.management.MBeanServerDelegate
- すべての実装されたインタフェース:
- MBeanServerDelegateMBean,- NotificationBroadcaster,- NotificationEmitter
public class MBeanServerDelegate extends Object implements MBeanServerDelegateMBean, NotificationEmitter
管理の視点でMBeanサーバーを表現します。 MBeanサーバーにMBeanが登録されたり、登録が解除されたりすると、MBeanServerDelegate MBeanはMBeanServerNotificationsを発行します。 
- 導入されたバージョン:
- 1.5
- 
フィールドのサマリーフィールド
- 
コンストラクタのサマリーコンストラクタ
- 
メソッドのサマリー修飾子と型メソッド説明voidaddNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)このMBeanにリスナーを追加します。JMX実装の名前(この製品の名前)を返します。JMX実装のベンダー(この製品のベンダー)を返します。JMX実装のバージョン(この製品のバージョン)を返します。MBeanサーバー・エージェントのアイデンティティを返します。このMBeanが送信する可能性のある各通知について、その通知のJavaクラス名と通知タイプを示す配列を返します。この製品に実装されているJMX仕様の完全名を返します。この製品に実装されているJMX仕様のベンダーを返します。この製品に実装されているJMX仕様のバージョンを返します。voidremoveNotificationListener(NotificationListener listener)このMBeanからリスナーを削除します。voidremoveNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)このMBeanからリスナーを削除します。voidsendNotification(Notification notification)MBeanサーバーから通知を送信できるようにします。
- 
フィールド詳細- 
DELEGATE_NAMEpublic static final ObjectName DELEGATE_NAMEMBeanServerDelegateのデフォルトObjectNameを定義します。- 導入されたバージョン:
- 1.6
 
 
- 
- 
コンストラクタの詳細- 
MBeanServerDelegatepublic MBeanServerDelegate()MBeanServerDelegateオブジェクトを作成します。
 
- 
- 
メソッドの詳細- 
getMBeanServerIdpublic String getMBeanServerId()MBeanサーバー・エージェントのアイデンティティを返します。- 定義:
- getMBeanServerId、インタフェース:- MBeanServerDelegateMBean
- 戻り値:
- アイデンティティ。
 
- 
getSpecificationNamepublic String getSpecificationName()この製品に実装されているJMX仕様の完全名を返します。- 定義:
- getSpecificationName、インタフェース:- MBeanServerDelegateMBean
- 戻り値:
- 仕様名。
 
- 
getSpecificationVersionpublic String getSpecificationVersion()この製品に実装されているJMX仕様のバージョンを返します。- 定義:
- getSpecificationVersion、インタフェース:- MBeanServerDelegateMBean
- 戻り値:
- 仕様のバージョン。
 
- 
getSpecificationVendorpublic String getSpecificationVendor()この製品に実装されているJMX仕様のベンダーを返します。- 定義:
- getSpecificationVendor、インタフェース:- MBeanServerDelegateMBean
- 戻り値:
- 仕様のベンダー。
 
- 
getImplementationNamepublic String getImplementationName()JMX実装の名前(この製品の名前)を返します。- 定義:
- getImplementationName、インタフェース:- MBeanServerDelegateMBean
- 戻り値:
- 実装名。
 
- 
getImplementationVersionpublic String getImplementationVersion()JMX実装のバージョン(この製品のバージョン)を返します。- 定義:
- getImplementationVersion、インタフェース:- MBeanServerDelegateMBean
- 戻り値:
- 実装のバージョン。
 
- 
getImplementationVendorpublic String getImplementationVendor()JMX実装のベンダー(この製品のベンダー)を返します。- 定義:
- getImplementationVendor、インタフェース:- MBeanServerDelegateMBean
- 戻り値:
- 実装のベンダー。
 
- 
getNotificationInfopublic MBeanNotificationInfo[] getNotificationInfo()インタフェースからコピーされた説明:NotificationBroadcasterこのMBeanが送信する可能性のある各通知について、その通知のJavaクラス名と通知タイプを示す配列を返します。 この配列に記述されていない通知をMBeanが送信しても、不正ではありません。 ただし一部のMBeanサーバー・クライアントは、正しく機能するために、作成される配列に依存する場合があります。 - 定義:
- getNotificationInfo、インタフェース:- NotificationBroadcaster
- 戻り値:
- 可能な通知の配列。
 
- 
addNotificationListenerpublic void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws IllegalArgumentExceptionインタフェースからコピーされた説明:NotificationBroadcasterこのMBeanにリスナーを追加します。- 定義:
- addNotificationListener、インタフェース:- NotificationBroadcaster
- パラメータ:
- listener- ブロードキャスタが発行した通知を処理するリスナー・オブジェクト。
- filter- フィルタ・オブジェクト。 フィルタがnullの場合、通知処理の前にフィルタは適用されない。
- handback- 通知の発行時にリスナーに送信される不透明なオブジェクト。 Notificationブロードキャスタ・オブジェクトは、このオブジェクトを使用できない。 このオブジェクトは、手を加えない状態で、通知とともにリスナーへ送り返されなければならない。
- 例外:
- IllegalArgumentException- リスナー・パラメータがnullの場合。
- 関連項目:
- NotificationBroadcaster.removeNotificationListener(javax.management.NotificationListener)
 
- 
removeNotificationListenerpublic void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundExceptionインタフェースからコピーされた説明:NotificationEmitterこのMBeanからリスナーを削除します。 MBeanは、指定された listener、filter、およびhandbackパラメータと正確に一致するリスナーを持っている必要があります。 該当するリスナーが複数存在する場合、そのうちの1つだけが削除されます。削除されるリスナー内でnullが指定されている場合にのみ、 filterおよびhandbackパラメータはnullになります。- 定義:
- removeNotificationListener、インタフェース:- NotificationEmitter
- パラメータ:
- listener- 以前にこのMBeanに追加されたリスナー。
- filter- リスナーの追加時に指定されたフィルタ。
- handback- リスナーの追加時に指定されたハンドバック。
- 例外:
- ListenerNotFoundException- リスナーがMBeanに登録されていない場合、または指定されたフィルタおよびハンドバックで登録されていない場合。
 
- 
removeNotificationListenerpublic void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundExceptionインタフェースからコピーされた説明:NotificationBroadcasterこのMBeanからリスナーを削除します。 リスナーが別のハンドバック・オブジェクトまたは通知フィルタに登録されている場合、このリスナーに対応するすべてのエントリが削除されます。- 定義:
- removeNotificationListener、インタフェース:- NotificationBroadcaster
- パラメータ:
- listener- 以前にこのMBeanに追加されたリスナー。
- 例外:
- ListenerNotFoundException- リスナーがMBeanに登録されていない場合。
- 関連項目:
- NotificationBroadcaster.addNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object),- NotificationEmitter.removeNotificationListener(javax.management.NotificationListener, javax.management.NotificationFilter, java.lang.Object)
 
- 
sendNotificationpublic void sendNotification(Notification notification)MBeanサーバーから通知を送信できるようにします。 シーケンス番号が0以下のnotificationが渡された場合、委譲の固有のシーケンス番号で置き換えます。- パラメータ:
- notification- 送信する通知。
 
 
-