public class MBeanServerDelegate extends Object implements MBeanServerDelegateMBean, NotificationEmitter
| 修飾子と型 | フィールドと説明 |
|---|---|
static ObjectName |
DELEGATE_NAME
MBeanServerDelegateのデフォルトObjectNameを定義します。
|
| コンストラクタと説明 |
|---|
MBeanServerDelegate()
MBeanServerDelegateオブジェクトを作成します。
|
| 修飾子と型 | メソッドと説明 |
|---|---|
void |
addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
このMBeanにリスナーを追加します。
|
String |
getImplementationName()
JMX実装の名前(この製品の名前)を返します。
|
String |
getImplementationVendor()
JMX実装のベンダー(この製品のベンダー)を返します。
|
String |
getImplementationVersion()
JMX実装のバージョン(この製品のバージョン)を返します。
|
String |
getMBeanServerId()
MBeanサーバー・エージェントのアイデンティティを返します。
|
MBeanNotificationInfo[] |
getNotificationInfo()
このMBeanが送信する可能性のある各通知について、その通知のJavaクラス名と通知型を示す配列を返します。
|
String |
getSpecificationName()
この製品に実装されているJMX仕様の完全名を返します。
|
String |
getSpecificationVendor()
この製品に実装されているJMX仕様のベンダーを返します。
|
String |
getSpecificationVersion()
この製品に実装されているJMX仕様のバージョンを返します。
|
void |
removeNotificationListener(NotificationListener listener)
このMBeanからリスナーを削除します。
|
void |
removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback)
このMBeanからリスナーを削除します。
|
void |
sendNotification(Notification notification)
MBeanサーバーから通知を送信できるようにします。
|
public static final ObjectName DELEGATE_NAME
public String getMBeanServerId()
getMBeanServerId、インタフェース: MBeanServerDelegateMBeanpublic String getSpecificationName()
getSpecificationName、インタフェース: MBeanServerDelegateMBeanpublic String getSpecificationVersion()
getSpecificationVersion、インタフェース: MBeanServerDelegateMBeanpublic String getSpecificationVendor()
getSpecificationVendor、インタフェース: MBeanServerDelegateMBeanpublic String getImplementationName()
getImplementationName、インタフェース: MBeanServerDelegateMBeanpublic String getImplementationVersion()
getImplementationVersion、インタフェース: MBeanServerDelegateMBeanpublic String getImplementationVendor()
getImplementationVendor、インタフェース: MBeanServerDelegateMBeanpublic MBeanNotificationInfo[] getNotificationInfo()
NotificationBroadcasterこのMBeanが送信する可能性のある各通知について、その通知のJavaクラス名と通知型を示す配列を返します。
この配列に記述されていない通知をMBeanが送信しても、不正ではありません。ただし一部のMBeanサーバー・クライアントは、正しく機能するために、作成される配列に依存する場合があります。
getNotificationInfo、インタフェース: NotificationBroadcasterpublic void addNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws IllegalArgumentException
NotificationBroadcasteraddNotificationListener、インタフェース: NotificationBroadcasterlistener - ブロードキャスタが発行した通知を処理するリスナー・オブジェクト。filter - フィルタ・オブジェクト。フィルタがnullの場合、通知処理の前にフィルタは適用されない。handback - 通知の発行時にリスナーに送信される不透明なオブジェクト。Notificationブロードキャスタ・オブジェクトは、このオブジェクトを使用できない。このオブジェクトは、手を加えない状態で、通知とともにリスナーへ送り返されなければならない。IllegalArgumentException - リスナー・パラメータがnullの場合。NotificationBroadcaster.removeNotificationListener(javax.management.NotificationListener)public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException
NotificationEmitterこのMBeanからリスナーを削除します。MBeanは、指定されたlistener、filter、およびhandbackパラメータと正確に一致するリスナーを持っている必要があります。該当するリスナーが複数存在する場合、そのうちの1つだけが削除されます。
削除されるリスナー内でnullが指定されている場合にのみ、filterおよびhandbackパラメータはnullになります。
removeNotificationListener、インタフェース: NotificationEmitterlistener - 以前にこのMBeanに追加されたリスナー。filter - リスナーの追加時に指定されたフィルタ。handback - リスナーの追加時に指定されたハンドバック。ListenerNotFoundException - リスナーがMBeanに登録されていない場合、または指定されたフィルタおよびハンドバックで登録されていない場合。public void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException
NotificationBroadcasterremoveNotificationListener、インタフェース: NotificationBroadcasterlistener - 以前にこの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)public void sendNotification(Notification notification)
notification - 送信する通知。 バグまたは機能を送信
詳細なAPIリファレンスおよび開発者ドキュメントについては、Java SEのドキュメントを参照してください。そのドキュメントには、概念的な概要、用語の定義、回避方法、有効なコード例などの、開発者を対象にしたより詳細な説明が含まれています。
Copyright© 1993, 2014, Oracle and/or its affiliates. All rights reserved.