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

📄 management.html

📁 j2ee api,很好的api。我这现在有
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the names of managed objects controlled by the MEJB. </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/j2ee/Management.html#setAttribute(javax.management.ObjectName, javax.management.Attribute)">setAttribute</A></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)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the value of a specific attribute of a named managed object. </TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../javax/management/AttributeList.html" title="class in javax.management">AttributeList</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/management/j2ee/Management.html#setAttributes(javax.management.ObjectName, javax.management.AttributeList)">setAttributes</A></B>(<A HREF="../../../javax/management/ObjectName.html" title="class in javax.management">ObjectName</A>&nbsp;name,              <A HREF="../../../javax/management/AttributeList.html" title="class in javax.management">AttributeList</A>&nbsp;attributes)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the values of several attributes of a named managed object. </TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_javax.ejb.EJBObject"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface javax.ejb.<A HREF="../../../javax/ejb/EJBObject.html" title="interface in javax.ejb">EJBObject</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../javax/ejb/EJBObject.html#getEJBHome()">getEJBHome</A>, <A HREF="../../../javax/ejb/EJBObject.html#getHandle()">getHandle</A>, <A HREF="../../../javax/ejb/EJBObject.html#getPrimaryKey()">getPrimaryKey</A>, <A HREF="../../../javax/ejb/EJBObject.html#isIdentical(javax.ejb.EJBObject)">isIdentical</A>, <A HREF="../../../javax/ejb/EJBObject.html#remove()">remove</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="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/rmi/RemoteException.html" title="class or interface in java.rmi">RemoteException</A></PRE><DL><DD>Gets the names of managed objects controlled by the MEJB. This method enables any of the following to be obtained: The names of all managed objects, the names of a set of managed objects specified by pattern matching on the <CODE>ObjectName</CODE>, a specific managed object name (equivalent to testing whether a managed object is registered). When the object name is null or no domain and key properties are specified, all objects are selected. It returns the set of J2EEObjectNames for the managed objects selected.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The object name pattern identifying the managed objects to be retrieved. If null or no domain and key properties are specified, all the managed objects registered will be retrieved.<DT><B>Returns:</B><DD>A set containing the ObjectNames for the managed objects selected. If no managed object satisfies the query, an empty set is returned.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/rmi/RemoteException.html" title="class or interface in java.rmi">RemoteException</A></CODE> - A communication exception occurred during the execution of a remote method call</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/rmi/RemoteException.html" title="class or interface in java.rmi">RemoteException</A></PRE><DL><DD>Checks whether a managed object, identified by its object name, is already registered with the MEJB.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The object name of the managed object to be checked.<DT><B>Returns:</B><DD>True if the managed object is already registered in the MEJB, false otherwise.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/rmi/RemoteException.html" title="class or interface in java.rmi">RemoteException</A></CODE> - A communication exception occurred during the execution of a remote method call</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/rmi/RemoteException.html" title="class or interface in java.rmi">RemoteException</A></PRE><DL><DD>Returns the number of managed objects registered in the MEJB.<P><DD><DL></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/rmi/RemoteException.html" title="class or interface in java.rmi">RemoteException</A></CODE> - A communication exception occurred during the execution of a remote method call</DL></DD></DL><HR><A NAME="getMBeanInfo(javax.management.ObjectName)"><!-- --></A><H3>getMBeanInfo</H3><PRE>public <A HREF="../../../javax/management/MBeanInfo.html" title="class in javax.management">MBeanInfo</A> <B>getMBeanInfo</B>(<A HREF="../../../javax/management/ObjectName.html" title="class in javax.management">ObjectName</A>&nbsp;name)                       throws <A HREF="../../../javax/management/IntrospectionException.html" title="class in javax.management">IntrospectionException</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/rmi/RemoteException.html" title="class or interface in java.rmi">RemoteException</A></PRE><DL><DD>This method discovers the attributes and operations that a managed object exposes for management.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the managed object to analyze<DT><B>Returns:</B><DD>An instance of <CODE>MBeanInfo</CODE> allowing the retrieval of all attributes and operations of this managed object.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/management/IntrospectionException.html" title="class in javax.management">IntrospectionException</A></CODE> - An exception occurs during introspection.<DD><CODE><A HREF="../../../javax/management/InstanceNotFoundException.html" title="class in javax.management">InstanceNotFoundException</A></CODE> - The managed object specified is not found.<DD><CODE><A HREF="../../../javax/management/ReflectionException.html" title="class in javax.management">ReflectionException</A></CODE> - An exception occurred when trying to perform reflection on a managed object<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/rmi/RemoteException.html" title="class or interface in java.rmi">RemoteException</A></CODE> - A communication exception occurred during the execution of a remote method call</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/rmi/RemoteException.html" title="class or interface in java.rmi">RemoteException</A></PRE><DL><DD>Gets the value of a specific attribute of a named managed object. The managed object is identified by its object name.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The object name of the managed object 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 managed object.<DD><CODE><A HREF="../../../javax/management/MBeanException.html" title="class in javax.management">MBeanException</A></CODE> - Wraps an exception thrown by the managed object's getter.<DD><CODE><A HREF="../../../javax/management/InstanceNotFoundException.html" title="class in javax.management">InstanceNotFoundException</A></CODE> - The managed object specified is not registered in the MEJB.<DD><CODE><A HREF="../../../javax/management/ReflectionException.html" title="class in javax.management">ReflectionException</A></CODE> - An exception occurred when trying to invoke the getAttribute method of a Dynamic MBean<DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/rmi/RemoteException.html" title="class or interface in java.rmi">RemoteException</A></CODE> - A communication exception occurred during the execution of a remote method call</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/rmi/RemoteException.html" title="class or interface in java.rmi">RemoteException</A></PRE><DL><DD>Enables the values of several attributes of a named managed object. The managed object is identified by its object name.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - The object name of the managed object 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 managed object specified is not registered in the MEJB.

⌨️ 快捷键说明

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