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

📄 mbeanserverconnection.html

📁 j2ee api,很好的api。我这现在有
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the values of several attributes of a named MBean. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/management/MBeanServerConnection.html#unregisterMBean(javax.management.ObjectName)">unregisterMBean</A></B>(<A HREF="../../javax/management/ObjectName.html" title="class in javax.management">ObjectName</A>&nbsp;name)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Unregisters an MBean from the MBean server. </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="createMBean(java.lang.String, javax.management.ObjectName)"><!-- --></A><H3>createMBean</H3><PRE>public <A HREF="../../javax/management/ObjectInstance.html" title="class in javax.management">ObjectInstance</A> <B>createMBean</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;className,                                  <A HREF="../../javax/management/ObjectName.html" title="class in javax.management">ObjectName</A>&nbsp;name)                           throws <A HREF="../../javax/management/ReflectionException.html" title="class in javax.management">ReflectionException</A>,                                  <A HREF="../../javax/management/InstanceAlreadyExistsException.html" title="class in javax.management">InstanceAlreadyExistsException</A>,                                  <A HREF="../../javax/management/MBeanRegistrationException.html" title="class in javax.management">MBeanRegistrationException</A>,                                  <A HREF="../../javax/management/MBeanException.html" title="class in javax.management">MBeanException</A>,                                  <A HREF="../../javax/management/NotCompliantMBeanException.html" title="class in javax.management">NotCompliantMBeanException</A>,                                  <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD><p>Instantiates and registers an MBean in the MBean server.  The MBean server will use its <A HREF="../../javax/management/loading/ClassLoaderRepository.html" title="interface in javax.management.loading"><CODE>Default Loader Repository</CODE></A> to load the class of the MBean.  An object name is associated to the MBean.	 If the object name given is null, the MBean must provide its own name by implementing the <A HREF="../../javax/management/MBeanRegistration.html" title="interface in javax.management"><CODE>MBeanRegistration</CODE></A> interface and returning the name from the <A HREF="../../javax/management/MBeanRegistration.html#preRegister(javax.management.MBeanServer, javax.management.ObjectName)"><CODE>preRegister</CODE></A> method.</p> <p>This method is equivalent to <A HREF="../../javax/management/MBeanServerConnection.html#createMBean(java.lang.String, javax.management.ObjectName, java.lang.Object[], java.lang.String[])"><CODE>createMBean(className, name, (Object[]) null, (String[]) null)</CODE></A>.</p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>className</CODE> - The class name of the MBean to be instantiated.<DD><CODE>name</CODE> - The object name of the MBean. May be null.<DT><B>Returns:</B><DD>An <CODE>ObjectInstance</CODE>, containing the <CODE>ObjectName</CODE> and the Java class name of the newly instantiated MBean.  If the contained <code>ObjectName</code> is <code>n</code>, the contained Java class name is <code><A HREF="../../javax/management/MBeanServerConnection.html#getMBeanInfo(javax.management.ObjectName)"><CODE>getMBeanInfo(n)</CODE></A>.getClassName()</code>.<DT><B>Throws:</B><DD><CODE><A HREF="../../javax/management/ReflectionException.html" title="class in javax.management">ReflectionException</A></CODE> - Wraps a <CODE>java.lang.ClassNotFoundException</CODE> or a <CODE><CODE>java.lang.Exception</CODE></CODE> that occurred when trying to invoke the MBean's constructor.<DD><CODE><A HREF="../../javax/management/InstanceAlreadyExistsException.html" title="class in javax.management">InstanceAlreadyExistsException</A></CODE> - The MBean is already under the control of the MBean server.<DD><CODE><A HREF="../../javax/management/MBeanRegistrationException.html" title="class in javax.management">MBeanRegistrationException</A></CODE> - The <CODE>preRegister</CODE> (<CODE>MBeanRegistration</CODE> interface) method of the MBean has thrown an exception. The MBean will not be registered.<DD><CODE><A HREF="../../javax/management/MBeanException.html" title="class in javax.management">MBeanException</A></CODE> - The constructor of the MBean has thrown an exception<DD><CODE><A HREF="../../javax/management/NotCompliantMBeanException.html" title="class in javax.management">NotCompliantMBeanException</A></CODE> - This class is not a JMX compliant MBean<DD><CODE><A HREF="../../javax/management/RuntimeOperationsException.html" title="class in javax.management">RuntimeOperationsException</A></CODE> - Wraps a <CODE>java.lang.IllegalArgumentException</CODE>: The className passed in parameter is null, the <CODE>ObjectName</CODE> passed in parameter contains a pattern or no <CODE>ObjectName</CODE> is specified for the MBean.<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - A communication problem occurred when talking to the MBean server.</DL></DD></DL><HR><A NAME="createMBean(java.lang.String, javax.management.ObjectName, javax.management.ObjectName)"><!-- --></A><H3>createMBean</H3><PRE>public <A HREF="../../javax/management/ObjectInstance.html" title="class in javax.management">ObjectInstance</A> <B>createMBean</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;className,                                  <A HREF="../../javax/management/ObjectName.html" title="class in javax.management">ObjectName</A>&nbsp;name,                                  <A HREF="../../javax/management/ObjectName.html" title="class in javax.management">ObjectName</A>&nbsp;loaderName)                           throws <A HREF="../../javax/management/ReflectionException.html" title="class in javax.management">ReflectionException</A>,                                  <A HREF="../../javax/management/InstanceAlreadyExistsException.html" title="class in javax.management">InstanceAlreadyExistsException</A>,                                  <A HREF="../../javax/management/MBeanRegistrationException.html" title="class in javax.management">MBeanRegistrationException</A>,                                  <A HREF="../../javax/management/MBeanException.html" title="class in javax.management">MBeanException</A>,                                  <A HREF="../../javax/management/NotCompliantMBeanException.html" title="class in javax.management">NotCompliantMBeanException</A>,                                  <A HREF="../../javax/management/InstanceNotFoundException.html" title="class in javax.management">InstanceNotFoundException</A>,                                  <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD><p>Instantiates and registers an MBean in the MBean server.  The class loader to be used is identified by its object name. An object name is associated to the MBean. If the object name of the loader is null, the ClassLoader that loaded the MBean server will be used.  If the MBean's object name given is null, the MBean must provide its own name by implementing the <A HREF="../../javax/management/MBeanRegistration.html" title="interface in javax.management"><CODE>MBeanRegistration</CODE></A> interface and returning the name from the <A HREF="../../javax/management/MBeanRegistration.html#preRegister(javax.management.MBeanServer, javax.management.ObjectName)"><CODE>preRegister</CODE></A> method.</p> <p>This method is equivalent to <A HREF="../../javax/management/MBeanServerConnection.html#createMBean(java.lang.String, javax.management.ObjectName, javax.management.ObjectName, java.lang.Object[], java.lang.String[])"><CODE>createMBean(className, name, loaderName, (Object[]) null, (String[]) null)</CODE></A>.</p><P><DD><DL><DT><B>Parameters:</B><DD><CODE>className</CODE> - The class name of the MBean to be instantiated.<DD><CODE>name</CODE> - The object name of the MBean. May be null.<DD><CODE>loaderName</CODE> - The object name of the class loader to be used.<DT><B>Returns:</B><DD>An <CODE>ObjectInstance</CODE>, containing the <CODE>ObjectName</CODE> and the Java class name of the newly instantiated MBean.  If the contained <code>ObjectName</code> is <code>n</code>, the contained Java class name is <code><A HREF="../../javax/management/MBeanServerConnection.html#getMBeanInfo(javax.management.ObjectName)"><CODE>getMBeanInfo(n)</CODE></A>.getClassName()</code>.<DT><B>Throws:</B><DD><CODE><A HREF="../../javax/management/ReflectionException.html" title="class in javax.management">ReflectionException</A></CODE> - Wraps a <CODE>java.lang.ClassNotFoundException</CODE> or a <CODE>java.lang.Exception</CODE> that occurred when trying to invoke the MBean's constructor.<DD><CODE><A HREF="../../javax/management/InstanceAlreadyExistsException.html" title="class in javax.management">InstanceAlreadyExistsException</A></CODE> - The MBean is already under the control of the MBean server.<DD><CODE><A HREF="../../javax/management/MBeanRegistrationException.html" title="class in javax.management">MBeanRegistrationException</A></CODE> - The <CODE>preRegister</CODE> (<CODE>MBeanRegistration</CODE> interface) method of the MBean has thrown an exception. The MBean will not be registered.<DD><CODE><A HREF="../../javax/management/MBeanException.html" title="class in javax.management">MBeanException</A></CODE> - The constructor of the MBean has thrown an exception<DD><CODE><A HREF="../../javax/management/NotCompliantMBeanException.html" title="class in javax.management">NotCompliantMBeanException</A></CODE> - This class is not a JMX compliant MBean<DD><CODE><A HREF="../../javax/management/InstanceNotFoundException.html" title="class in javax.management">InstanceNotFoundException</A></CODE> - The specified class loader is not registered in the MBean server.<DD><CODE><A HREF="../../javax/management/RuntimeOperationsException.html" title="class in javax.management">RuntimeOperationsException</A></CODE> - Wraps a <CODE>java.lang.IllegalArgumentException</CODE>: The className passed in parameter is null, the <CODE>ObjectName</CODE> passed in parameter contains a pattern or no <CODE>ObjectName</CODE> is specified for the MBean.<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></CODE> - A communication problem occurred when talking to the MBean server.</DL></DD></DL><HR><A NAME="createMBean(java.lang.String, javax.management.ObjectName, java.lang.Object[], java.lang.String[])"><!-- --></A><H3>createMBean</H3><PRE>public <A HREF="../../javax/management/ObjectInstance.html" title="class in javax.management">ObjectInstance</A> <B>createMBean</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;className,                                  <A HREF="../../javax/management/ObjectName.html" title="class in javax.management">ObjectName</A>&nbsp;name,                                  <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A>[]&nbsp;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>[]&nbsp;signature)                           throws <A HREF="../../javax/management/ReflectionException.html" title="class in javax.management">ReflectionException</A>,                                  <A HREF="../../javax/management/InstanceAlreadyExistsException.html" title="class in javax.management">InstanceAlreadyExistsException</A>,                                  <A HREF="../../javax/management/MBeanRegistrationException.html" title="class in javax.management">MBeanRegistrationException</A>,                                  <A HREF="../../javax/management/MBeanException.html" title="class in javax.management">MBeanException</A>,                                  <A HREF="../../javax/management/NotCompliantMBeanException.html" title="class in javax.management">NotCompliantMBeanException</A>,                                  <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/IOException.html" title="class or interface in java.io">IOException</A></PRE><DL><DD>Instantiates and registers an MBean in the MBean server.  The MBean server will use its <A HREF="../../javax/management/loading/ClassLoaderRepository.html" title="interface in javax.management.loading"><CODE>Default Loader Repository</CODE></A> to load the class of the MBean.  An object name is associated to the MBean.  If the object name given is null, the MBean must provide its own name by implementing the <A HREF="../../javax/management/MBeanRegistration.html" title="interface in javax.management"><CODE>MBeanRegistration</CODE></A> interface and returning the name from the <A HREF="../../javax/management/MBeanRegistration.html#preRegister(javax.management.MBeanServer, javax.management.ObjectName)"><CODE>preRegister</CODE></A> method.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>className</CODE> - The class name of the MBean to be instantiated.<DD><CODE>name</CODE> - The object name of the MBean. May be null.<DD><CODE>params</CODE> - An array containing the parameters of the constructor to be invoked.<DD><CODE>signature</CODE> - An array containing the signature of the constructor to be invoked.<DT><B>Returns:</B><DD>An <CODE>ObjectInstance</CODE>, containing the <CODE>ObjectName</CODE> and the Java class name of the newly instantiated MBean.  If the contained <code>ObjectName</code> is <code>n</code>, the contained Java class name is <code><A HREF="../../javax/management/MBeanServerConnection.html#getMBeanInfo(javax.management.ObjectName)"><CODE>getMBeanInfo(n)</CODE></A>.getClassName()</code>.

⌨️ 快捷键说明

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