📄 modelmbeaninfosupport.html
字号:
<A NAME="clone()"><!-- --></A><H3>clone</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>clone</B>()</PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../javax/management/modelmbean/ModelMBeanInfo.html" title="interface in javax.management.modelmbean">ModelMBeanInfo</A></CODE></B></DD><DD>Creates and returns a copy of this object.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/management/modelmbean/ModelMBeanInfo.html#clone()">clone</A></CODE> in interface <CODE><A HREF="../../../javax/management/modelmbean/ModelMBeanInfo.html" title="interface in javax.management.modelmbean">ModelMBeanInfo</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../javax/management/MBeanInfo.html#clone()">clone</A></CODE> in class <CODE><A HREF="../../../javax/management/MBeanInfo.html" title="class in javax.management">MBeanInfo</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getDescriptors(java.lang.String)"><!-- --></A><H3>getDescriptors</H3><PRE>public <A HREF="../../../javax/management/Descriptor.html" title="interface in javax.management">Descriptor</A>[] <B>getDescriptors</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> inDescriptorType) throws <A HREF="../../../javax/management/MBeanException.html" title="class in javax.management">MBeanException</A>, <A HREF="../../../javax/management/RuntimeOperationsException.html" title="class in javax.management">RuntimeOperationsException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../javax/management/modelmbean/ModelMBeanInfo.html" title="interface in javax.management.modelmbean">ModelMBeanInfo</A></CODE></B></DD><DD>Returns a Descriptor array consisting of all Descriptors for the ModelMBeanInfo of type inDescriptorType.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/management/modelmbean/ModelMBeanInfo.html#getDescriptors(java.lang.String)">getDescriptors</A></CODE> in interface <CODE><A HREF="../../../javax/management/modelmbean/ModelMBeanInfo.html" title="interface in javax.management.modelmbean">ModelMBeanInfo</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>inDescriptorType</CODE> - value of descriptorType field that must be set for the descriptor to be returned. Must be "mbean", "attribute", "operation", "constructor" or "notification". If it is null or empty then all types will be returned.<DT><B>Returns:</B><DD>Descriptor array containing all descriptors for the ModelMBean if type inDescriptorType.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/management/MBeanException.html" title="class in javax.management">MBeanException</A></CODE> - Wraps a distributed communication Exception.<DD><CODE><A HREF="../../../javax/management/RuntimeOperationsException.html" title="class in javax.management">RuntimeOperationsException</A></CODE> - Wraps an IllegalArgumentException when the descriptorType in parameter is not one of: "mbean", "attribute", "operation", "constructor", "notification", empty or null.<DT><B>See Also:</B><DD><A HREF="../../../javax/management/modelmbean/ModelMBeanInfo.html#setDescriptors(javax.management.Descriptor[])"><CODE>ModelMBeanInfo.setDescriptors(javax.management.Descriptor[])</CODE></A></DL></DD></DL><HR><A NAME="setDescriptors(javax.management.Descriptor[])"><!-- --></A><H3>setDescriptors</H3><PRE>public void <B>setDescriptors</B>(<A HREF="../../../javax/management/Descriptor.html" title="interface in javax.management">Descriptor</A>[] inDescriptors) throws <A HREF="../../../javax/management/MBeanException.html" title="class in javax.management">MBeanException</A>, <A HREF="../../../javax/management/RuntimeOperationsException.html" title="class in javax.management">RuntimeOperationsException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../javax/management/modelmbean/ModelMBeanInfo.html" title="interface in javax.management.modelmbean">ModelMBeanInfo</A></CODE></B></DD><DD>Adds or replaces descriptors in the ModelMBeanInfo.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/management/modelmbean/ModelMBeanInfo.html#setDescriptors(javax.management.Descriptor[])">setDescriptors</A></CODE> in interface <CODE><A HREF="../../../javax/management/modelmbean/ModelMBeanInfo.html" title="interface in javax.management.modelmbean">ModelMBeanInfo</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>inDescriptors</CODE> - The descriptors to be set in the ModelMBeanInfo. Null elements of the list will be ignored. All descriptors must have name and descriptorType fields.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/management/MBeanException.html" title="class in javax.management">MBeanException</A></CODE> - Wraps a distributed communication Exception.<DD><CODE><A HREF="../../../javax/management/RuntimeOperationsException.html" title="class in javax.management">RuntimeOperationsException</A></CODE> - Wraps an IllegalArgumentException for a null or invalid descriptor.<DT><B>See Also:</B><DD><A HREF="../../../javax/management/modelmbean/ModelMBeanInfo.html#getDescriptors(java.lang.String)"><CODE>ModelMBeanInfo.getDescriptors(java.lang.String)</CODE></A></DL></DD></DL><HR><A NAME="getDescriptor(java.lang.String)"><!-- --></A><H3>getDescriptor</H3><PRE>public <A HREF="../../../javax/management/Descriptor.html" title="interface in javax.management">Descriptor</A> <B>getDescriptor</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> inDescriptorName) throws <A HREF="../../../javax/management/MBeanException.html" title="class in javax.management">MBeanException</A>, <A HREF="../../../javax/management/RuntimeOperationsException.html" title="class in javax.management">RuntimeOperationsException</A></PRE><DL><DD>Returns a Descriptor requested by name.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>inDescriptorName</CODE> - The name of the descriptor.<DT><B>Returns:</B><DD>Descriptor containing a descriptor for the ModelMBean with the same name. If no descriptor is found, null is returned.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/management/MBeanException.html" title="class in javax.management">MBeanException</A></CODE> - Wraps a distributed communication Exception.<DD><CODE><A HREF="../../../javax/management/RuntimeOperationsException.html" title="class in javax.management">RuntimeOperationsException</A></CODE> - Wraps an IllegalArgumentException for null name.<DT><B>See Also:</B><DD><A HREF="../../../javax/management/modelmbean/ModelMBeanInfoSupport.html#setDescriptor(javax.management.Descriptor, java.lang.String)"><CODE>setDescriptor(javax.management.Descriptor, java.lang.String)</CODE></A></DL></DD></DL><HR><A NAME="getDescriptor(java.lang.String, java.lang.String)"><!-- --></A><H3>getDescriptor</H3><PRE>public <A HREF="../../../javax/management/Descriptor.html" title="interface in javax.management">Descriptor</A> <B>getDescriptor</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> inDescriptorName, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> inDescriptorType) throws <A HREF="../../../javax/management/MBeanException.html" title="class in javax.management">MBeanException</A>, <A HREF="../../../javax/management/RuntimeOperationsException.html" title="class in javax.management">RuntimeOperationsException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../javax/management/modelmbean/ModelMBeanInfo.html" title="interface in javax.management.modelmbean">ModelMBeanInfo</A></CODE></B></DD><DD>Returns a Descriptor requested by name and descriptorType.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/management/modelmbean/ModelMBeanInfo.html#getDescriptor(java.lang.String, java.lang.String)">getDescriptor</A></CODE> in interface <CODE><A HREF="../../../javax/management/modelmbean/ModelMBeanInfo.html" title="interface in javax.management.modelmbean">ModelMBeanInfo</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>inDescriptorName</CODE> - The name of the descriptor.<DD><CODE>inDescriptorType</CODE> - The type of the decriptor being requested. If this is null or empty then all types are searched. Valid types are 'mbean', 'attribute', 'constructor' 'operation', and 'notification'. This value will be equal to the 'descriptorType' field in the descriptor that is returned.<DT><B>Returns:</B><DD>Descriptor containing the descriptor for the ModelMBean with the same name and descriptorType. If no descriptor is found, null is returned.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/management/MBeanException.html" title="class in javax.management">MBeanException</A></CODE> - Wraps a distributed communication Exception.<DD><CODE><A HREF="../../../javax/management/RuntimeOperationsException.html" title="class in javax.management">RuntimeOperationsException</A></CODE> - Wraps an IllegalArgumentException for a null descriptor name or null or invalid type. The type must be "mbean","attribute", "constructor", "operation", or "notification".<DT><B>See Also:</B><DD><A HREF="../../../javax/management/modelmbean/ModelMBeanInfo.html#setDescriptor(javax.management.Descriptor, java.lang.String)"><CODE>ModelMBeanInfo.setDescriptor(javax.management.Descriptor, java.lang.String)</CODE></A></DL></DD></DL><HR><A NAME="setDescriptor(javax.management.Descriptor, java.lang.String)"><!-- --></A><H3>setDescriptor</H3><PRE>public void <B>setDescriptor</B>(<A HREF="../../../javax/management/Descriptor.html" title="interface in javax.management">Descriptor</A> inDescriptor, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> inDescriptorType) throws <A HREF="../../../javax/management/MBeanException.html" title="class in javax.management">MBeanException</A>, <A HREF="../../../javax/management/RuntimeOperationsException.html" title="class in javax.management">RuntimeOperationsException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../javax/management/modelmbean/ModelMBeanInfo.html" title="interface in javax.management.modelmbean">ModelMBeanInfo</A></CODE></B></DD><DD>Sets descriptors in the info array of type inDescriptorType for the ModelMBean. The setDescriptor method of the corresponding ModelMBean*Info will be called to set the specified descriptor.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/management/modelmbean/ModelMBeanInfo.html#setDescriptor(javax.management.Descriptor, java.lang.String)">setDescriptor</A></CODE> in interface <CODE><A HREF="../../../javax/management/modelmbean/ModelMBeanInfo.html" title="interface in javax.management.modelmbean">ModelMBeanInfo</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>inDescriptor</CODE> - The descriptor to be set in the ModelMBean. It must NOT be null. All descriptors must have name and descriptorType fields.<DD><CODE>inDescriptorType</CODE> - The type of the descriptor being set. If this is null then the descriptorType field in the descriptor is used. If specified this value must be set in the descriptorType field in the descriptor. Must be "mbean","attribute", "constructor", "operation", or "notification".<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/management/RuntimeOperationsException.html" title="class in javax.management">RuntimeOperationsException</A></CODE> - Wraps an IllegalArgumentException for illegal or null arguments or if the name field of the descriptor is not found in the corresponding MBeanAttributeInfo or MBeanConstructorInfo or MBeanNotificationInfo or MBeanOperationInfo.<DD><CODE><A HREF="../../../javax/management/MBeanException.html" title="class in javax.management">MBeanException</A></CODE> - Wraps a distributed communication Exception.<DT><B>See Also:</B><DD><A HREF="../../../javax/management/modelmbean/ModelMBeanInfo.html#getDescriptor(java.lang.String, java.lang.String)"><CODE>ModelMBeanInfo.getDescriptor(java.lang.String, java.lang.String)</CODE></A></DL></DD></DL><HR><A NAME="getAttribute(java.lang.String)"><!-- --></A><H3>getAttribute</H3><PRE>public <A HREF="../../../javax/management/modelmbean/ModelMBeanAttributeInfo.html" title="class in javax.management.modelmbean">ModelMBeanAttributeInfo</A> <B>getAttribute</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> inName) throws <A HREF="../../../javax/management/MBeanException.html" title="class in javax.management">MBeanException</A>, <A HREF="../../../javax/management/RuntimeOperationsException.html" title="class in javax.management">RuntimeOperationsException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../javax/management/modelmbean/ModelMBeanInfo.html" title="interface in javax.management.modelmbean">ModelMBeanInfo</A></CODE></B></DD><DD>Returns a ModelMBeanAttributeInfo requested by name.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/management/modelmbean/ModelMBeanInfo.html#getAttribute(java.lang.String)">getAttribute</A></CODE> in interface <CODE><A HREF="../../../javax/management/modelmbean/ModelMBeanInfo.html" title="interface in javax.management.modelmbean">ModelMBeanInfo</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>inName</CODE> - The name of the ModelMBeanAttributeInfo to get. If no ModelMBeanAttributeInfo exists for this name null is returned.<DT><B>Returns:</B><DD>the attribute info for the named attribute, or null if there is none.<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/management/MBeanException.html" title="class in javax.management">MBeanException</A></CODE> - Wraps a distributed communication Exception.<DD><CODE><A HREF="../../../javax/management/RuntimeOperationsException.html" title="class in javax.management">RuntimeOperationsException</A></CODE> - Wraps an IllegalArgumentException for a null attribute name.</DL></DD></DL><HR><A NAME="getOperation(java.lang.String)"><!-- --></A><H3>getOperation</H3><PRE>public <A HREF="../../../javax/management/modelmbean/ModelMBeanOperationInfo.html" title="class in javax.management.modelmbean">ModelMBeanOperationInfo</A> <B>getOperation</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> inName) throws <A HREF="../../../javax/management/MBeanException.html" title="class in javax.management">MBeanException</A>, <A HREF="../../../javax/management/RuntimeOperationsException.html" title="class in javax.management">RuntimeOperationsException</A></PRE><DL><DD><B>Description copied from interface: <CODE><A HREF="../../../javax/management/modelmbean/ModelMBeanInfo.html" title="interface in javax.management.modelmbean">ModelMBeanInfo</A></CODE></B></DD><DD>Returns a ModelMBeanOperationInfo requested by name.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/management/modelmbean/ModelMBeanInfo.html#getOperation(java.lang.String)">getOperation</A></CODE> in interface <CODE><A HREF="../../../javax/management/modelmbean/ModelMBeanInfo.html" title="interface in javax.management.modelmbean">ModelMBeanInfo</A></CODE></DL></DD>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -