📄 standardmbean.html
字号:
<HR><A NAME="getDescription(javax.management.MBeanOperationInfo)"><!-- --></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/MBeanOperationInfo.html" title="class in javax.management">MBeanOperationInfo</A> info)</PRE><DL><DD>Customization hook: Get the description that will be used in the MBeanOperationInfo 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 MBeanOperationInfo derived by reflection.<DT><B>Returns:</B><DD>the description for the given MBeanOperationInfo.</DL></DD></DL><HR><A NAME="getImpact(javax.management.MBeanOperationInfo)"><!-- --></A><H3>getImpact</H3><PRE>protected int <B>getImpact</B>(<A HREF="../../javax/management/MBeanOperationInfo.html" title="class in javax.management">MBeanOperationInfo</A> info)</PRE><DL><DD>Customization hook: Get the <var>impact</var> flag of the operation that will be used in the MBeanOperationInfo returned by this MBean. <br> Subclasses may redefine this method in order to supply their custom impact flag. The default implementation returns <A HREF="../../javax/management/MBeanOperationInfo.html#getImpact()"><CODE>info.getImpact()</CODE></A>.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>info</CODE> - The default MBeanOperationInfo derived by reflection.<DT><B>Returns:</B><DD>the impact flag for the given MBeanOperationInfo.</DL></DD></DL><HR><A NAME="getParameterName(javax.management.MBeanOperationInfo, 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/MBeanOperationInfo.html" title="class in javax.management">MBeanOperationInfo</A> op, <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 MBeanOperationInfo 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>op</CODE> - The default MBeanOperationInfo 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 to use for the given MBeanParameterInfo.</DL></DD></DL><HR><A NAME="getDescription(javax.management.MBeanOperationInfo, 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/MBeanOperationInfo.html" title="class in javax.management">MBeanOperationInfo</A> op, <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 MBeanOperationInfo 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>op</CODE> - The default MBeanOperationInfo 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="getConstructors(javax.management.MBeanConstructorInfo[], java.lang.Object)"><!-- --></A><H3>getConstructors</H3><PRE>protected <A HREF="../../javax/management/MBeanConstructorInfo.html" title="class in javax.management">MBeanConstructorInfo</A>[] <B>getConstructors</B>(<A HREF="../../javax/management/MBeanConstructorInfo.html" title="class in javax.management">MBeanConstructorInfo</A>[] ctors, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A> impl)</PRE><DL><DD>Customization hook: Get the MBeanConstructorInfo[] that will be used in the MBeanInfo returned by this MBean. <br> By default, this method returns <code>null</code> if the wrapped implementation is not <var>this</var>. Indeed, if the wrapped implementation is not this object itself, it will not be possible to recreate a wrapped implementation by calling the implementation constructors through <code>MBeanServer.createMBean(...)</code>.<br> Otherwise, if the wrapped implementation is <var>this</var>, <var>ctors</var> is returned. <br> Subclasses may redefine this method in order to modify this behaviour, if needed.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>ctors</CODE> - The default MBeanConstructorInfo[] derived by reflection.<DD><CODE>impl</CODE> - The wrapped implementation. If <code>null</code> is passed, the wrapped implementation is ignored and <var>ctors</var> is returned.<DT><B>Returns:</B><DD>the MBeanConstructorInfo[] for the new MBeanInfo.</DL></DD></DL><HR><A NAME="getCachedMBeanInfo()"><!-- --></A><H3>getCachedMBeanInfo</H3><PRE>protected <A HREF="../../javax/management/MBeanInfo.html" title="class in javax.management">MBeanInfo</A> <B>getCachedMBeanInfo</B>()</PRE><DL><DD>Customization hook: Return the MBeanInfo cached for this object. <p>Subclasses may redefine this method in order to implement their own caching policy. The default implementation stores one <A HREF="../../javax/management/MBeanInfo.html" title="class in javax.management"><CODE>MBeanInfo</CODE></A> object per instance.<P><DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>The cached MBeanInfo, or null if no MBeanInfo is cached.<DT><B>See Also:</B><DD><A HREF="../../javax/management/StandardMBean.html#cacheMBeanInfo(javax.management.MBeanInfo)"><CODE>cacheMBeanInfo(MBeanInfo)</CODE></A></DL></DD></DL><HR><A NAME="cacheMBeanInfo(javax.management.MBeanInfo)"><!-- --></A><H3>cacheMBeanInfo</H3><PRE>protected void <B>cacheMBeanInfo</B>(<A HREF="../../javax/management/MBeanInfo.html" title="class in javax.management">MBeanInfo</A> info)</PRE><DL><DD>Customization hook: cache the MBeanInfo built for this object. <p>Subclasses may redefine this method in order to implement their own caching policy. The default implementation stores <code>info</code> in this instance. A subclass can define other policies, such as not saving <code>info</code> (so it is reconstructed every time <A HREF="../../javax/management/StandardMBean.html#getMBeanInfo()"><CODE>getMBeanInfo()</CODE></A> is called) or sharing a unique <A HREF="../../javax/management/MBeanInfo.html" title="class in javax.management"><CODE>MBeanInfo</CODE></A> object when several <code>StandardMBean</code> instances have equal <A HREF="../../javax/management/MBeanInfo.html" title="class in javax.management"><CODE>MBeanInfo</CODE></A> values.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>info</CODE> - the new <code>MBeanInfo</code> to cache. Any previously cached value is discarded. This parameter may be null, in which case there is no new cached value.</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ======= START OF BOTTOM NAVBAR ====== --><A NAME="navbar_bottom"><!-- --></A><A HREF="#skip-navbar_bottom" title="Skip navigation links"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> <TR ALIGN="center" VALIGN="top"> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Ent. Ed. v1.4</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../javax/management/QueryEval.html" title="class in javax.management"><B>PREV CLASS</B></A> <A HREF="../../javax/management/StringValueExp.html" title="class in javax.management"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../index.html" target="_top"><B>FRAMES</B></A> <A HREF="StandardMBean.html" target="_top"><B>NO FRAMES</B></A> <SCRIPT type="text/javascript"> <!-- if(window==top) { document.writeln('<A HREF="../../allclasses-noframe.html"><B>All Classes</B></A>'); } //--></SCRIPT><NOSCRIPT> <A HREF="../../allclasses-noframe.html"><B>All Classes</B></A></NOSCRIPT></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -