クラスMBeanServerDelegate

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
  • フィールド詳細

    • DELEGATE_NAME

      public static final ObjectName DELEGATE_NAME
      MBeanServerDelegateのデフォルトObjectNameを定義します。
      導入されたバージョン:
      1.6
  • コンストラクタの詳細

    • MBeanServerDelegate

      public MBeanServerDelegate()
      MBeanServerDelegateオブジェクトを作成します。
  • メソッドの詳細

    • 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の場合。
      関連項目:
    • removeNotificationListener

      public void removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) throws ListenerNotFoundException
      インタフェースからコピーされた説明: NotificationEmitter

      このMBeanからリスナーを削除します。 MBeanは、指定されたlistenerfilter、および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に登録されていない場合。
      関連項目:
    • sendNotification

      public void sendNotification(Notification notification)
      MBeanサーバーから通知を送信できるようにします。 シーケンス番号が0以下のnotificationが渡された場合、委譲の固有のシーケンス番号で置き換えます。
      パラメータ:
      notification - 送信する通知。