📄 standardmbean.html
字号:
</DL><HR><A NAME="invoke(java.lang.String, java.lang.Object[], java.lang.String[])"><!-- --></A><H3>invoke</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> <B>invoke</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> actionName, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[] params, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A>[] signature) throws <A HREF="../../javax/management/MBeanException.html" title="class in javax.management">MBeanException</A>, <A HREF="../../javax/management/ReflectionException.html" title="class in javax.management">ReflectionException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../javax/management/DynamicMBean.html" title="interface in javax.management">DynamicMBean</A></CODE></B></DD><DD>Allows an action to be invoked on the Dynamic MBean.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../javax/management/DynamicMBean.html#invoke(java.lang.String, java.lang.Object[], java.lang.String[])">invoke</A></CODE> in interface <CODE><A HREF="../../javax/management/DynamicMBean.html" title="interface in javax.management">DynamicMBean</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>actionName</CODE> - The name of the action to be invoked.<DD><CODE>params</CODE> - An array containing the parameters to be set when the action is invoked.<DD><CODE>signature</CODE> - An array containing the signature of the action. The class objects will be loaded through the same class loader as the one used for loading the MBean on which the action is invoked.<DT><B>Returns:</B><DD>The object returned by the action, which represents the result of invoking the action on the MBean specified.<DT><B>Throws:</B><DD><CODE><A HREF="../../javax/management/MBeanException.html" title="class in javax.management">MBeanException</A></CODE> - Wraps a <CODE>java.lang.Exception</CODE> thrown by the MBean's invoked method.<DD><CODE><A HREF="../../javax/management/ReflectionException.html" title="class in javax.management">ReflectionException</A></CODE> - Wraps a <CODE>java.lang.Exception</CODE> thrown while trying to invoke the method</DL></DD></DL><HR><A NAME="getMBeanInfo()"><!-- --></A><H3>getMBeanInfo</H3><PRE>public <A HREF="../../javax/management/MBeanInfo.html" title="class in javax.management">MBeanInfo</A> <B>getMBeanInfo</B>()</PRE><DL><DD>Get the <A HREF="../../javax/management/MBeanInfo.html" title="class in javax.management"><CODE>MBeanInfo</CODE></A> for this MBean. <p> This method implements <A HREF="../../javax/management/DynamicMBean.html#getMBeanInfo()"><CODE>DynamicMBean.getMBeanInfo()</CODE></A>. <p> This method first calls <A HREF="../../javax/management/StandardMBean.html#getCachedMBeanInfo()"><CODE>getCachedMBeanInfo()</CODE></A> in order to retrieve the cached MBeanInfo for this MBean, if any. If the MBeanInfo returned by <A HREF="../../javax/management/StandardMBean.html#getCachedMBeanInfo()"><CODE>getCachedMBeanInfo()</CODE></A> is not null, then it is returned.<br> Otherwise, this method builds a default MBeanInfo for this MBean, using the Management Interface specified for this MBean. <p> While building the MBeanInfo, this method calls the customization hooks that make it possible for subclasses to supply their custom descriptions, parameter names, etc...<br> Finally, it calls <A HREF="../../javax/management/StandardMBean.html#cacheMBeanInfo(javax.management.MBeanInfo)"><CODE>cacheMBeanInfo()</CODE></A> in order to cache the new MBeanInfo.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../javax/management/DynamicMBean.html#getMBeanInfo()">getMBeanInfo</A></CODE> in interface <CODE><A HREF="../../javax/management/DynamicMBean.html" title="interface in javax.management">DynamicMBean</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>The cached MBeanInfo for that MBean, if not null, or a newly built MBeanInfo if none was cached.</DL></DD></DL><HR><A NAME="getClassName(javax.management.MBeanInfo)"><!-- --></A><H3>getClassName</H3><PRE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getClassName</B>(<A HREF="../../javax/management/MBeanInfo.html" title="class in javax.management">MBeanInfo</A> info)</PRE><DL><DD>Customization hook: Get the className that will be used in the MBeanInfo returned by this MBean. <br> Subclasses may redefine this method in order to supply their custom class name. The default implementation returns <A HREF="../../javax/management/MBeanInfo.html#getClassName()"><CODE>info.getClassName()</CODE></A>.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>info</CODE> - The default MBeanInfo derived by reflection.<DT><B>Returns:</B><DD>the class name for the new MBeanInfo.</DL></DD></DL><HR><A NAME="getDescription(javax.management.MBeanInfo)"><!-- --></A><H3>getDescription</H3><PRE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getDescription</B>(<A HREF="../../javax/management/MBeanInfo.html" title="class in javax.management">MBeanInfo</A> info)</PRE><DL><DD>Customization hook: Get the description that will be used in the MBeanInfo returned by this MBean. <br> Subclasses may redefine this method in order to supply their custom MBean description. The default implementation returns <A HREF="../../javax/management/MBeanInfo.html#getDescription()"><CODE>info.getDescription()</CODE></A>.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>info</CODE> - The default MBeanInfo derived by reflection.<DT><B>Returns:</B><DD>the description for the new MBeanInfo.</DL></DD></DL><HR><A NAME="getDescription(javax.management.MBeanFeatureInfo)"><!-- --></A><H3>getDescription</H3><PRE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getDescription</B>(<A HREF="../../javax/management/MBeanFeatureInfo.html" title="class in javax.management">MBeanFeatureInfo</A> info)</PRE><DL><DD><p>Customization hook: Get the description that will be used in the MBeanFeatureInfo returned by this MBean.</p> <p>Subclasses may redefine this method in order to supply their custom description. The default implementation returns <A HREF="../../javax/management/MBeanFeatureInfo.html#getDescription()"><CODE>info.getDescription()</CODE></A>.</p> <p>This method is called by <A HREF="../../javax/management/StandardMBean.html#getDescription(javax.management.MBeanAttributeInfo)"><CODE>getDescription(MBeanAttributeInfo)</CODE></A>, <A HREF="../../javax/management/StandardMBean.html#getDescription(javax.management.MBeanOperationInfo)"><CODE>getDescription(MBeanOperationInfo)</CODE></A>, <A HREF="../../javax/management/StandardMBean.html#getDescription(javax.management.MBeanConstructorInfo)"><CODE>getDescription(MBeanConstructorInfo)</CODE></A>.</p><P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>info</CODE> - The default MBeanFeatureInfo derived by reflection.<DT><B>Returns:</B><DD>the description for the given MBeanFeatureInfo.</DL></DD></DL><HR><A NAME="getDescription(javax.management.MBeanAttributeInfo)"><!-- --></A><H3>getDescription</H3><PRE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getDescription</B>(<A HREF="../../javax/management/MBeanAttributeInfo.html" title="class in javax.management">MBeanAttributeInfo</A> info)</PRE><DL><DD>Customization hook: Get the description that will be used in the MBeanAttributeInfo returned by this MBean. <p>Subclasses may redefine this method in order to supply their custom description. The default implementation returns <A HREF="../../javax/management/StandardMBean.html#getDescription(javax.management.MBeanFeatureInfo)"><CODE>getDescription((MBeanFeatureInfo) info)</CODE></A>.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>info</CODE> - The default MBeanAttributeInfo derived by reflection.<DT><B>Returns:</B><DD>the description for the given MBeanAttributeInfo.</DL></DD></DL><HR><A NAME="getDescription(javax.management.MBeanConstructorInfo)"><!-- --></A><H3>getDescription</H3><PRE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getDescription</B>(<A HREF="../../javax/management/MBeanConstructorInfo.html" title="class in javax.management">MBeanConstructorInfo</A> info)</PRE><DL><DD>Customization hook: Get the description that will be used in the MBeanConstructorInfo returned by this MBean. <br> Subclasses may redefine this method in order to supply their custom description. The default implementation returns <A HREF="../../javax/management/StandardMBean.html#getDescription(javax.management.MBeanFeatureInfo)"><CODE>getDescription((MBeanFeatureInfo) info)</CODE></A>.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>info</CODE> - The default MBeanConstructorInfo derived by reflection.<DT><B>Returns:</B><DD>the description for the given MBeanConstructorInfo.</DL></DD></DL><HR><A NAME="getDescription(javax.management.MBeanConstructorInfo, javax.management.MBeanParameterInfo, int)"><!-- --></A><H3>getDescription</H3><PRE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getDescription</B>(<A HREF="../../javax/management/MBeanConstructorInfo.html" title="class in javax.management">MBeanConstructorInfo</A> ctor, <A HREF="../../javax/management/MBeanParameterInfo.html" title="class in javax.management">MBeanParameterInfo</A> param, int sequence)</PRE><DL><DD>Customization hook: Get the description that will be used for the <var>sequence</var> MBeanParameterInfo of the MBeanConstructorInfo returned by this MBean. <br> Subclasses may redefine this method in order to supply their custom description. The default implementation returns <A HREF="../../javax/management/MBeanFeatureInfo.html#getDescription()"><CODE>param.getDescription()</CODE></A>.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ctor</CODE> - The default MBeanConstructorInfo derived by reflection.<DD><CODE>param</CODE> - The default MBeanParameterInfo derived by reflection.<DD><CODE>sequence</CODE> - The sequence number of the parameter considered ("0" for the first parameter, "1" for the second parameter, etc...).<DT><B>Returns:</B><DD>the description for the given MBeanParameterInfo.</DL></DD></DL><HR><A NAME="getParameterName(javax.management.MBeanConstructorInfo, javax.management.MBeanParameterInfo, int)"><!-- --></A><H3>getParameterName</H3><PRE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>getParameterName</B>(<A HREF="../../javax/management/MBeanConstructorInfo.html" title="class in javax.management">MBeanConstructorInfo</A> ctor, <A HREF="../../javax/management/MBeanParameterInfo.html" title="class in javax.management">MBeanParameterInfo</A> param, int sequence)</PRE><DL><DD>Customization hook: Get the name that will be used for the <var>sequence</var> MBeanParameterInfo of the MBeanConstructorInfo returned by this MBean. <br> Subclasses may redefine this method in order to supply their custom parameter name. The default implementation returns <A HREF="../../javax/management/MBeanFeatureInfo.html#getName()"><CODE>param.getName()</CODE></A>.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ctor</CODE> - The default MBeanConstructorInfo derived by reflection.<DD><CODE>param</CODE> - The default MBeanParameterInfo derived by reflection.<DD><CODE>sequence</CODE> - The sequence number of the parameter considered ("0" for the first parameter, "1" for the second parameter, etc...).<DT><B>Returns:</B><DD>the name for the given MBeanParameterInfo.</DL></DD></DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -