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

📄 mbeanserverconnection.html

📁 j2ee api,很好的api。我这现在有
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<A NAME="queryNames(javax.management.ObjectName, javax.management.QueryExp)"><!-- --></A><H3>queryNames</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/util/Set.html" title="class or interface in java.util">Set</A> <B>queryNames</B>(<A HREF="../../javax/management/ObjectName.html" title="class in javax.management">ObjectName</A>&nbsp;name,                      <A HREF="../../javax/management/QueryExp.html" title="interface in javax.management">QueryExp</A>&nbsp;query)               throws <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>Gets the names of MBeans controlled by the MBean server. This method enables any of the following to be obtained: The names of all MBeans, the names of a set of MBeans specified by pattern matching on the <CODE>ObjectName</CODE> and/or a Query expression, a specific MBean name (equivalent to testing whether an MBean is registered). When the object name is null or no domain and key properties are specified, all objects are selected (and filtered if a query is specified). It returns the set of ObjectNames for the MBeans selected.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The object name pattern identifying the MBean names to be retrieved. If null oror no domain and key properties are specified, the name of all registered MBeans will be retrieved.<DD><CODE>query</CODE> - The query expression to be applied for selecting MBeans. If null no query expression will be applied for selecting MBeans.<DT><B>Returns:</B><DD>A set containing the ObjectNames for the MBeans selected.  If no MBean satisfies the query, an empty list is returned.<DT><B>Throws:</B><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="isRegistered(javax.management.ObjectName)"><!-- --></A><H3>isRegistered</H3><PRE>public boolean <B>isRegistered</B>(<A HREF="../../javax/management/ObjectName.html" title="class in javax.management">ObjectName</A>&nbsp;name)                     throws <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>Checks whether an MBean, identified by its object name, is already registered with the MBean server.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The object name of the MBean to be checked.<DT><B>Returns:</B><DD>True if the MBean is already registered in the MBean server, false otherwise.<DT><B>Throws:</B><DD><CODE><A HREF="../../javax/management/RuntimeOperationsException.html" title="class in javax.management">RuntimeOperationsException</A></CODE> - Wraps a <CODE>java.lang.IllegalArgumentException</CODE>: The object name in parameter is null.<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="getMBeanCount()"><!-- --></A><H3>getMBeanCount</H3><PRE>public <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Integer.html" title="class or interface in java.lang">Integer</A> <B>getMBeanCount</B>()                      throws <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>Returns the number of MBeans registered in the MBean server.<P><DD><DL><DT><B>Returns:</B><DD>the number of MBeans registered.<DT><B>Throws:</B><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="getAttribute(javax.management.ObjectName, java.lang.String)"><!-- --></A><H3>getAttribute</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>getAttribute</B>(<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/String.html" title="class or interface in java.lang">String</A>&nbsp;attribute)                    throws <A HREF="../../javax/management/MBeanException.html" title="class in javax.management">MBeanException</A>,                           <A HREF="../../javax/management/AttributeNotFoundException.html" title="class in javax.management">AttributeNotFoundException</A>,                           <A HREF="../../javax/management/InstanceNotFoundException.html" title="class in javax.management">InstanceNotFoundException</A>,                           <A HREF="../../javax/management/ReflectionException.html" title="class in javax.management">ReflectionException</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>Gets the value of a specific attribute of a named MBean. The MBean is identified by its object name.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The object name of the MBean from which the attribute is to be retrieved.<DD><CODE>attribute</CODE> - A String specifying the name of the attribute to be retrieved.<DT><B>Returns:</B><DD>The value of the retrieved attribute.<DT><B>Throws:</B><DD><CODE><A HREF="../../javax/management/AttributeNotFoundException.html" title="class in javax.management">AttributeNotFoundException</A></CODE> - The attribute specified is not accessible in the MBean.<DD><CODE><A HREF="../../javax/management/MBeanException.html" title="class in javax.management">MBeanException</A></CODE> - Wraps an exception thrown by the MBean's getter.<DD><CODE><A HREF="../../javax/management/InstanceNotFoundException.html" title="class in javax.management">InstanceNotFoundException</A></CODE> - The MBean specified is not registered in the MBean server.<DD><CODE><A HREF="../../javax/management/ReflectionException.html" title="class in javax.management">ReflectionException</A></CODE> - Wraps a <CODE>java.lang.Exception</CODE> thrown when trying to invoke the setter.<DD><CODE><A HREF="../../javax/management/RuntimeOperationsException.html" title="class in javax.management">RuntimeOperationsException</A></CODE> - Wraps a <CODE>java.lang.IllegalArgumentException</CODE>: The object name in parameter is null or the attribute in parameter is null.<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.<DT><B>See Also:</B><DD><A HREF="../../javax/management/MBeanServerConnection.html#setAttribute(javax.management.ObjectName, javax.management.Attribute)"><CODE>setAttribute(javax.management.ObjectName, javax.management.Attribute)</CODE></A></DL></DD></DL><HR><A NAME="getAttributes(javax.management.ObjectName, java.lang.String[])"><!-- --></A><H3>getAttributes</H3><PRE>public <A HREF="../../javax/management/AttributeList.html" title="class in javax.management">AttributeList</A> <B>getAttributes</B>(<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/String.html" title="class or interface in java.lang">String</A>[]&nbsp;attributes)                            throws <A HREF="../../javax/management/InstanceNotFoundException.html" title="class in javax.management">InstanceNotFoundException</A>,                                   <A HREF="../../javax/management/ReflectionException.html" title="class in javax.management">ReflectionException</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>Enables the values of several attributes of a named MBean. The MBean is identified by its object name.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The object name of the MBean from which the attributes are retrieved.<DD><CODE>attributes</CODE> - A list of the attributes to be retrieved.<DT><B>Returns:</B><DD>The list of the retrieved attributes.<DT><B>Throws:</B><DD><CODE><A HREF="../../javax/management/InstanceNotFoundException.html" title="class in javax.management">InstanceNotFoundException</A></CODE> - The MBean specified is not registered in the MBean server.<DD><CODE><A HREF="../../javax/management/ReflectionException.html" title="class in javax.management">ReflectionException</A></CODE> - An exception occurred when trying to invoke the getAttributes method of a Dynamic MBean.<DD><CODE><A HREF="../../javax/management/RuntimeOperationsException.html" title="class in javax.management">RuntimeOperationsException</A></CODE> - Wrap a <CODE>java.lang.IllegalArgumentException</CODE>: The object name in parameter is null or attributes in parameter is null.<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.<DT><B>See Also:</B><DD><A HREF="../../javax/management/MBeanServerConnection.html#setAttributes(javax.management.ObjectName, javax.management.AttributeList)"><CODE>setAttributes(javax.management.ObjectName, javax.management.AttributeList)</CODE></A></DL></DD></DL><HR><A NAME="setAttribute(javax.management.ObjectName, javax.management.Attribute)"><!-- --></A><H3>setAttribute</H3><PRE>public void <B>setAttribute</B>(<A HREF="../../javax/management/ObjectName.html" title="class in javax.management">ObjectName</A>&nbsp;name,                         <A HREF="../../javax/management/Attribute.html" title="class in javax.management">Attribute</A>&nbsp;attribute)                  throws <A HREF="../../javax/management/InstanceNotFoundException.html" title="class in javax.management">InstanceNotFoundException</A>,                         <A HREF="../../javax/management/AttributeNotFoundException.html" title="class in javax.management">AttributeNotFoundException</A>,                         <A HREF="../../javax/management/InvalidAttributeValueException.html" title="class in javax.management">InvalidAttributeValueException</A>,                         <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>,                         <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>Sets the value of a specific attribute of a named MBean. The MBean is identified by its object name.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the MBean within which the attribute is to be set.<DD><CODE>attribute</CODE> - The identification of the attribute to be set and the value it is to be set to.<DT><B>Throws:</B><DD><CODE><A HREF="../../javax/management/InstanceNotFoundException.html" title="class in javax.management">InstanceNotFoundException</A></CODE> - The MBean specified is not registered in the MBean server.<DD><CODE><A HREF="../../javax/management/AttributeNotFoundException.html" title="class in javax.management">AttributeNotFoundException</A></CODE> - The attribute specified is not accessible in the MBean.<DD><CODE><A HREF="../../javax/management/InvalidAttributeValueException.html" title="class in javax.management">InvalidAttributeValueException</A></CODE> - The value specified for the attribute is not valid.<DD><CODE><A HREF="../../javax/management/MBeanException.html" title="class in javax.management">MBeanException</A></CODE> - Wraps an exception thrown by the MBean's setter.<DD><CODE><A HREF="../../javax/management/ReflectionException.html" title="class in javax.management">ReflectionException</A></CODE> - Wraps a <CODE>java.lang.Exception</CODE> thrown when trying to invoke the setter.<DD><CODE><A HREF="../../javax/management/RuntimeOperationsException.html" title="class in javax.management">RuntimeOperationsException</A

⌨️ 快捷键说明

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