|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjavax.management.MBeanServerDelegate
public class MBeanServerDelegate
管理の視点で MBean サーバーを表現します。MBean サーバーに MBean が登録されたり、登録が解除されたりすると、MBeanServerDelegate MBean は MBeanServerNotifications を発行します。
| フィールドの概要 | |
|---|---|
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 サーバーから通知を送信できるようにします。 |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
public static final ObjectName DELEGATE_NAME
| コンストラクタの詳細 |
|---|
public MBeanServerDelegate()
| メソッドの詳細 |
|---|
public String getMBeanServerId()
MBeanServerDelegateMBean 内の getMBeanServerIdpublic String getSpecificationName()
MBeanServerDelegateMBean 内の getSpecificationNamepublic String getSpecificationVersion()
MBeanServerDelegateMBean 内の getSpecificationVersionpublic String getSpecificationVendor()
MBeanServerDelegateMBean 内の getSpecificationVendorpublic String getImplementationName()
MBeanServerDelegateMBean 内の getImplementationNamepublic String getImplementationVersion()
MBeanServerDelegateMBean 内の getImplementationVersionpublic String getImplementationVendor()
MBeanServerDelegateMBean 内の getImplementationVendorpublic MBeanNotificationInfo[] getNotificationInfo()
NotificationBroadcaster の記述:この MBean が送信する可能性のある各通知について、その通知の Java クラス名と通知型を示す配列を返します。
この配列に記述されていない通知を MBean が送信しても、不正ではありません。ただし一部の MBean サーバークライアントは、正しく機能するために、作成される配列に依存する場合があります。
NotificationBroadcaster 内の getNotificationInfo
public void addNotificationListener(NotificationListener listener,
NotificationFilter filter,
Object handback)
throws IllegalArgumentException
NotificationBroadcaster の記述:
NotificationBroadcaster 内の addNotificationListenerlistener - ブロードキャスタが発行した通知を 処理するリスナーオブジェクト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 になります。
NotificationEmitter 内の removeNotificationListenerlistener - 以前にこの MBean に追加されたリスナーfilter - リスナーの追加時に指定されたフィルタhandback - リスナーの追加時に指定されたハンドバック
ListenerNotFoundException - リスナーが MBean に 登録されていない場合、または指定されたフィルタおよびハンドバックで 登録されていない場合
public void removeNotificationListener(NotificationListener listener)
throws ListenerNotFoundException
NotificationBroadcaster の記述:
NotificationBroadcaster 内の removeNotificationListenerlistener - 以前にこの 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 - 送信する通知
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。