- 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
-
-
フィールドのサマリー
フィールド 修飾子と型 フィールド 説明 static ObjectNameDELEGATE_NAMEMBeanServerDelegateのデフォルトObjectNameを定義します。
-
コンストラクタのサマリー
コンストラクタ コンストラクタ 説明 MBeanServerDelegate()MBeanServerDelegateオブジェクトを作成します。
-
メソッドのサマリー
すべてのメソッド インスタンス・メソッド 具象メソッド 修飾子と型 メソッド 説明 voidaddNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)このMBeanにリスナーを追加します。StringgetImplementationName()JMX実装の名前(この製品の名前)を返します。StringgetImplementationVendor()JMX実装のベンダー(この製品のベンダー)を返します。StringgetImplementationVersion()JMX実装のバージョン(この製品のバージョン)を返します。StringgetMBeanServerId()MBeanサーバー・エージェントのアイデンティティを返します。MBeanNotificationInfo[]getNotificationInfo()このMBeanが送信する可能性のある各通知について、その通知のJavaクラス名と通知型を示す配列を返します。StringgetSpecificationName()この製品に実装されているJMX仕様の完全名を返します。StringgetSpecificationVendor()この製品に実装されているJMX仕様のベンダーを返します。StringgetSpecificationVersion()この製品に実装されているJMX仕様のバージョンを返します。voidremoveNotificationListener(NotificationListener listener)このMBeanからリスナーを削除します。voidremoveNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)このMBeanからリスナーを削除します。voidsendNotification(Notification notification)MBeanサーバーから通知を送信できるようにします。
-
-
-
フィールドの詳細
-
DELEGATE_NAME
public static final ObjectName DELEGATE_NAME
MBeanServerDelegateのデフォルトObjectNameを定義します。- 導入されたバージョン:
- 1.6
-
-
メソッドの詳細
-
getMBeanServerId
public String getMBeanServerId()
MBeanサーバー・エージェントのアイデンティティを返します。- 定義:
getMBeanServerId、インタフェース:MBeanServerDelegateMBean- 戻り値:
- アイデンティティ。
-
getSpecificationName
public String getSpecificationName()
この製品に実装されているJMX仕様の完全名を返します。- 定義:
getSpecificationName、インタフェース:MBeanServerDelegateMBean- 戻り値:
- 仕様名。
-
getSpecificationVersion
public String getSpecificationVersion()
この製品に実装されているJMX仕様のバージョンを返します。- 定義:
getSpecificationVersion、インタフェース:MBeanServerDelegateMBean- 戻り値:
- 仕様のバージョン。
-
getSpecificationVendor
public String getSpecificationVendor()
この製品に実装されているJMX仕様のベンダーを返します。- 定義:
getSpecificationVendor、インタフェース:MBeanServerDelegateMBean- 戻り値:
- 仕様のベンダー。
-
getImplementationName
public String getImplementationName()
JMX実装の名前(この製品の名前)を返します。- 定義:
getImplementationName、インタフェース:MBeanServerDelegateMBean- 戻り値:
- 実装名。
-
getImplementationVersion
public String getImplementationVersion()
JMX実装のバージョン(この製品のバージョン)を返します。- 定義:
getImplementationVersion、インタフェース:MBeanServerDelegateMBean- 戻り値:
- 実装のバージョン。
-
getImplementationVendor
public String getImplementationVendor()
JMX実装のベンダー(この製品のベンダー)を返します。- 定義:
getImplementationVendor、インタフェース:MBeanServerDelegateMBean- 戻り値:
- 実装のベンダー。
-
getNotificationInfo
public MBeanNotificationInfo[] getNotificationInfo()
インタフェースからコピーされた説明:NotificationBroadcasterこのMBeanが送信する可能性のある各通知について、その通知のJavaクラス名と通知型を示す配列を返します。
この配列に記述されていない通知をMBeanが送信しても、不正ではありません。 ただし一部のMBeanサーバー・クライアントは、正しく機能するために、作成される配列に依存する場合があります。
- 定義:
getNotificationInfo、インタフェース:NotificationBroadcaster- 戻り値:
- 可能な通知の配列。
-
addNotificationListener
public 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)
-
removeNotificationListener
public 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に登録されていない場合、または指定されたフィルタおよびハンドバックで登録されていない場合。
-
removeNotificationListener
public 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)
-
sendNotification
public void sendNotification(Notification notification)
MBeanサーバーから通知を送信できるようにします。 シーケンス番号が0以下のnotificationが渡された場合、委譲の固有のシーケンス番号で置き換えます。- パラメータ:
notification- 送信する通知。
-
-