⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mbeanserverfactory.html

📁 j2ee api,很好的api。我这现在有
💻 HTML
📖 第 1 页 / 共 3 页
字号:
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/ArrayList.html" title="class or interface in java.util">ArrayList</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/management/MBeanServerFactory.html#findMBeanServer(java.lang.String)">findMBeanServer</A></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>&nbsp;agentId)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a list of registered MBeanServer objects.  </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../javax/management/loading/ClassLoaderRepository.html" title="interface in javax.management.loading">ClassLoaderRepository</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/management/MBeanServerFactory.html#getClassLoaderRepository(javax.management.MBeanServer)">getClassLoaderRepository</A></B>(<A HREF="../../javax/management/MBeanServer.html" title="interface in javax.management">MBeanServer</A>&nbsp;server)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return the ClassLoaderRepository used by the given MBeanServer. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../javax/management/MBeanServer.html" title="interface in javax.management">MBeanServer</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/management/MBeanServerFactory.html#newMBeanServer()">newMBeanServer</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a new object implementing the MBeanServer interface with a standard default domain name, without keeping an internal reference to this new object.  </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../javax/management/MBeanServer.html" title="interface in javax.management">MBeanServer</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/management/MBeanServerFactory.html#newMBeanServer(java.lang.String)">newMBeanServer</A></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>&nbsp;domain)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Return a new object implementing the MBeanServer interface with the specified default domain name, without keeping an internal reference to this new object.  </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/management/MBeanServerFactory.html#releaseMBeanServer(javax.management.MBeanServer)">releaseMBeanServer</A></B>(<A HREF="../../javax/management/MBeanServer.html" title="interface in javax.management">MBeanServer</A>&nbsp;mbeanServer)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Remove internal MBeanServerFactory references to a created MBeanServer. </TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<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></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="releaseMBeanServer(javax.management.MBeanServer)"><!-- --></A><H3>releaseMBeanServer</H3><PRE>public static void <B>releaseMBeanServer</B>(<A HREF="../../javax/management/MBeanServer.html" title="interface in javax.management">MBeanServer</A>&nbsp;mbeanServer)</PRE><DL><DD>Remove internal MBeanServerFactory references to a created MBeanServer. This allows the garbage collector to remove the MBeanServer object.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>mbeanServer</CODE> - the MBeanServer object to remove.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if <code>mbeanServer</code> was not generated by one of the <code>createMBeanServer</code> methods, or if <code>releaseMBeanServer</code> was already called on it.<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/SecurityException.html" title="class or interface in java.lang">SecurityException</A></CODE> - if there is a SecurityManager and  the caller's permissions do not include or imply <code><A HREF="../../javax/management/MBeanServerPermission.html" title="class in javax.management"><CODE>MBeanServerPermission</CODE></A>("releaseMBeanServer")</code>.</DL></DD></DL><HR><A NAME="createMBeanServer()"><!-- --></A><H3>createMBeanServer</H3><PRE>public static <A HREF="../../javax/management/MBeanServer.html" title="interface in javax.management">MBeanServer</A> <B>createMBeanServer</B>()</PRE><DL><DD><p>Return a new object implementing the MBeanServer interface with a standard default domain name.  The default domain name is used as the domain part in the ObjectName of MBeans when the domain is specified by the user is null.</p> <p>The standard default domain name is defined in <CODE>ServiceName.DOMAIN</CODE>.</p> <p>The MBeanServer reference is internally kept. This will allow <CODE>findMBeanServer</CODE> to return a reference to this MBeanServer object.</p> <p>This method is equivalent to <code>createMBeanServer(null)</code>.<P><DD><DL><DT><B>Returns:</B><DD>the newly created MBeanServer.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/SecurityException.html" title="class or interface in java.lang">SecurityException</A></CODE> - if there is a SecurityManager and the  caller's permissions do not include or imply <code><A HREF="../../javax/management/MBeanServerPermission.html" title="class in javax.management"><CODE>MBeanServerPermission</CODE></A>("createMBeanServer")</code>.<DD><CODE><A HREF="../../javax/management/JMRuntimeException.html" title="class in javax.management">JMRuntimeException</A></CODE> - if the property <code>javax.management.builder.initial</code> exists but the class it names cannot be instantiated through a public no-argument constructor; or if the instantiated builder returns null from its <A HREF="../../javax/management/MBeanServerBuilder.html#newMBeanServerDelegate()"><CODE>newMBeanServerDelegate</CODE></A> or <A HREF="../../javax/management/MBeanServerBuilder.html#newMBeanServer(java.lang.String, javax.management.MBeanServer, javax.management.MBeanServerDelegate)"><CODE>newMBeanServer</CODE></A> methods.<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/ClassCastException.html" title="class or interface in java.lang">ClassCastException</A></CODE> - if the property <code>javax.management.builder.initial</code> exists and can be instantiated but is not assignment compatible with <A HREF="../../javax/management/MBeanServerBuilder.html" title="class in javax.management"><CODE>MBeanServerBuilder</CODE></A>.</DL></DD></DL><HR><A NAME="createMBeanServer(java.lang.String)"><!-- --></A><H3>createMBeanServer</H3><PRE>public static <A HREF="../../javax/management/MBeanServer.html" title="interface in javax.management">MBeanServer</A> <B>createMBeanServer</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>&nbsp;domain)</PRE><DL><DD><p>Return a new object implementing the <A HREF="../../javax/management/MBeanServer.html" title="interface in javax.management"><CODE>MBeanServer</CODE></A> interface with the specified default domain name.  The given domain name is used as the domain part in the ObjectName of MBeans when the domain is specified by the user is null.</p> <p>The MBeanServer reference is internally kept. This will allow <CODE>findMBeanServer</CODE> to return a reference to this MBeanServer object.</p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>domain</CODE> - the default domain name for the created MBeanServer.  This is the value that will be returned by <A HREF="../../javax/management/MBeanServer.html#getDefaultDomain()"><CODE>MBeanServer.getDefaultDomain()</CODE></A>.<DT><B>Returns:</B><DD>the newly created MBeanServer.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/SecurityException.html" title="class or interface in java.lang">SecurityException</A></CODE> - if there is a SecurityManager and  the caller's permissions do not include or imply <code><A HREF="../../javax/management/MBeanServerPermission.html" title="class in javax.management"><CODE>MBeanServerPermission</CODE></A>("createMBeanServer")</code>.<DD><CODE><A HREF="../../javax/management/JMRuntimeException.html" title="class in javax.management">JMRuntimeException</A></CODE> - if the property <code>javax.management.builder.initial</code> exists but the class it names cannot be instantiated through a public no-argument constructor; or if the instantiated builder returns null from its <A HREF="../../javax/management/MBeanServerBuilder.html#newMBeanServerDelegate()"><CODE>newMBeanServerDelegate</CODE></A> or <A HREF="../../javax/management/MBeanServerBuilder.html#newMBeanServer(java.lang.String, javax.management.MBeanServer, javax.management.MBeanServerDelegate)"><CODE>newMBeanServer</CODE></A> methods.<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/ClassCastException.html" title="class or interface in java.lang">ClassCastException</A></CODE> - if the property <code>javax.management.builder.initial</code> exists and can be instantiated but is not assignment compatible with <A HREF="../../javax/management/MBeanServerBuilder.html" title="class in javax.management"><CODE>MBeanServerBuilder</CODE></A>.</DL></DD></DL><HR><A NAME="newMBeanServer()"><!-- --></A><H3>newMBeanServer</H3><PRE>public static <A HREF="../../javax/management/MBeanServer.html" title="interface in javax.management">MBeanServer</A> <B>newMBeanServer</B>()</PRE><DL><DD><p>Return a new object implementing the MBeanServer interface with a standard default domain name, without keeping an internal reference to this new object.  The default domain name is used as the domain part in the ObjectName of MBeans when the

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -