モジュール java.management
パッケージ javax.management

インタフェースDynamicMBean

    • メソッドのサマリー

      修飾子と型 メソッド 説明
      Object getAttribute​(String attribute)
      Dynamic MBeanの特定の属性の値を取得します。
      AttributeList getAttributes​(String[] attributes)
      Dynamic MBeanの複数の属性の値を取得します。
      MBeanInfo getMBeanInfo()
      MBeanInfoオブジェクトを使って、Dynamic MBeanの公開属性およびアクションを提供します。
      Object invoke​(String actionName, Object[] params, String[] signature)
      Dynamic MBean上でのアクションの呼出しを許可します。
      void setAttribute​(Attribute attribute)
      Dynamic MBeanの特定の属性の値を設定します。
      AttributeList setAttributes​(AttributeList attributes)
      Dynamic MBeanの複数の属性の値を設定します。
    • メソッドの詳細

      • setAttributes

        AttributeList setAttributes​(AttributeList attributes)
        Dynamic MBeanの複数の属性の値を設定します。
        パラメータ:
        attributes - 属性のリスト。属性のリスト(設定される属性のIDと設定される値)。
        戻り値:
        設定された属性と新しい値のリスト。
        関連項目:
        getAttributes(java.lang.String[])
      • invoke

        Object invoke​(String actionName,
                      Object[] params,
                      String[] signature)
               throws MBeanException,
                      ReflectionException
        Dynamic MBean上でのアクションの呼出しを許可します。
        パラメータ:
        actionName - 呼び出されるアクションの名前。
        params - アクションの呼出し時に設定されるパラメータを含む配列。
        signature - アクションのシグニチャを含む配列。 クラス・オブジェクトのロードには、アクションを呼び出すMBeanをロードするときと同じクラス・ローダーが使用される。
        戻り値:
        アクションによって返されるオブジェクト。指定されたMBean上でのアクションの呼出しの結果を表す。
        例外:
        MBeanException - MBeanの呼出しメソッドによってスローされるjava.lang.Exceptionをラップする場合。
        ReflectionException - メソッドの呼出し時にスローされるjava.lang.Exceptionをラップする場合。
      • getMBeanInfo

        MBeanInfo getMBeanInfo()
        MBeanInfoオブジェクトを使って、Dynamic MBeanの公開属性およびアクションを提供します。
        戻り値:
        MBeanInfoのインスタンス。このDynamic MBeanによって公開されるすべての属性およびアクションの取得を許可する。