complextype.html
来自「网络爬虫开源代码」· HTML 代码 · 共 1,346 行 · 第 1/5 页
HTML
1,346 行
setAttribute</H3><PRE>public final void <B>setAttribute</B>(javax.management.Attribute attribute) throws javax.management.AttributeNotFoundException, javax.management.InvalidAttributeValueException, javax.management.MBeanException, javax.management.ReflectionException</PRE><DL><DD>Set the value of a specific attribute of the ComplexType. This method sets the specific attribute for the order file.<P><DD><DL><DT><B>Specified by:</B><DD><CODE>setAttribute</CODE> in interface <CODE>javax.management.DynamicMBean</CODE></DL></DD><DD><DL><DT><B>Parameters:</B><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>javax.management.AttributeNotFoundException</CODE> - is thrown if there is no attribute with this name.<DD><CODE>javax.management.InvalidAttributeValueException</CODE> - is thrown if the attribute is of wrong type and cannot be converted to the right type.<DD><CODE>javax.management.MBeanException</CODE> - this is to conform to the MBean specification, but this exception is never thrown, though this might change in the future.<DD><CODE>javax.management.ReflectionException</CODE> - this is to conform to the MBean specification, but this exception is never thrown, though this might change in the future.<DT><B>See Also:</B><DD><CODE>DynamicMBean.setAttribute(javax.management.Attribute)</CODE></DL></DD></DL><HR><A NAME="setAttribute(org.archive.crawler.settings.CrawlerSettings, javax.management.Attribute)"><!-- --></A><H3>setAttribute</H3><PRE>public final void <B>setAttribute</B>(<A HREF="../../../../org/archive/crawler/settings/CrawlerSettings.html" title="class in org.archive.crawler.settings">CrawlerSettings</A> settings, javax.management.Attribute attribute) throws javax.management.InvalidAttributeValueException, javax.management.AttributeNotFoundException</PRE><DL><DD>Set the value of a specific attribute of the ComplexType. This method is an extension to the Dynamic MBean specification so that it is possible to set the value for a CrawlerSettings object other than the settings object representing the order.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>settings</CODE> - the settings object for which this attributes value is valid<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>javax.management.AttributeNotFoundException</CODE> - is thrown if there is no attribute with this name.<DD><CODE>javax.management.InvalidAttributeValueException</CODE> - is thrown if the attribute is of wrong type and cannot be converted to the right type.<DT><B>See Also:</B><DD><CODE>DynamicMBean.setAttribute(javax.management.Attribute)</CODE></DL></DD></DL><HR><A NAME="getDefinition(java.lang.String)"><!-- --></A><H3>getDefinition</H3><PRE><A HREF="../../../../org/archive/crawler/settings/Type.html" title="class in org.archive.crawler.settings">Type</A> <B>getDefinition</B>(java.lang.String attributeName)</PRE><DL><DD>Get the content type definition for an attribute.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>attributeName</CODE> - the name of the attribute to get definition for.<DT><B>Returns:</B><DD>the content type definition for the attribute.</DL></DD></DL><HR><A NAME="checkValue(org.archive.crawler.settings.CrawlerSettings, java.lang.String, java.lang.Object)"><!-- --></A><H3>checkValue</H3><PRE>public <A HREF="../../../../org/archive/crawler/settings/Constraint.FailedCheck.html" title="class in org.archive.crawler.settings">Constraint.FailedCheck</A> <B>checkValue</B>(<A HREF="../../../../org/archive/crawler/settings/CrawlerSettings.html" title="class in org.archive.crawler.settings">CrawlerSettings</A> settings, java.lang.String attributeName, java.lang.Object value)</PRE><DL><DD>Check an attribute to see if it fulfills all the constraints set on the definition of this attribute.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>settings</CODE> - the CrawlerSettings object for which this check was executed.<DD><CODE>attributeName</CODE> - the name of the attribute to check.<DD><CODE>value</CODE> - the value to check.<DT><B>Returns:</B><DD>null if everything is ok, otherwise it returns a FailedCheck object with detailed information of what went wrong.</DL></DD></DL><HR><A NAME="checkValue(org.archive.crawler.settings.CrawlerSettings, java.lang.String, org.archive.crawler.settings.Type, java.lang.Object)"><!-- --></A><H3>checkValue</H3><PRE><A HREF="../../../../org/archive/crawler/settings/Constraint.FailedCheck.html" title="class in org.archive.crawler.settings">Constraint.FailedCheck</A> <B>checkValue</B>(<A HREF="../../../../org/archive/crawler/settings/CrawlerSettings.html" title="class in org.archive.crawler.settings">CrawlerSettings</A> settings, java.lang.String attributeName, <A HREF="../../../../org/archive/crawler/settings/Type.html" title="class in org.archive.crawler.settings">Type</A> definition, java.lang.Object value)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="unsetAttribute(org.archive.crawler.settings.CrawlerSettings, java.lang.String)"><!-- --></A><H3>unsetAttribute</H3><PRE>public java.lang.Object <B>unsetAttribute</B>(<A HREF="../../../../org/archive/crawler/settings/CrawlerSettings.html" title="class in org.archive.crawler.settings">CrawlerSettings</A> settings, java.lang.String name) throws javax.management.AttributeNotFoundException</PRE><DL><DD>Unset an attribute on a per host level. This methods removes an override on a per host or per domain level.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>settings</CODE> - the settings object for which the attribute should be unset.<DD><CODE>name</CODE> - the name of the attribute.<DT><B>Returns:</B><DD>The removed attribute or null if nothing was removed.<DT><B>Throws:</B><DD><CODE>javax.management.AttributeNotFoundException</CODE> - is thrown if the attribute name doesn't exist.</DL></DD></DL><HR><A NAME="getAttributes(java.lang.String[])"><!-- --></A><H3>getAttributes</H3><PRE>public javax.management.AttributeList <B>getAttributes</B>(java.lang.String[] name)</PRE><DL><DD><DL><DT><B>Specified by:</B><DD><CODE>getAttributes</CODE> in interface <CODE>javax.management.DynamicMBean</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="setAttributes(javax.management.AttributeList)"><!-- --></A><H3>setAttributes</H3><PRE>public javax.management.AttributeList <B>setAttributes</B>(javax.management.AttributeList attributes)</PRE><DL><DD><DL><DT><B>Specified by:</B><DD><CODE>setAttributes</CODE> in interface <CODE>javax.management.DynamicMBean</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="invoke(java.lang.String, java.lang.Object[], java.lang.String[])"><!-- --></A><H3>invoke</H3><PRE>public java.lang.Object <B>invoke</B>(java.lang.String arg0, java.lang.Object[] arg1, java.lang.String[] arg2) throws javax.management.MBeanException, javax.management.ReflectionException</PRE><DL><DD><DL><DT><B>Specified by:</B><DD><CODE>invoke</CODE> in interface <CODE>javax.management.DynamicMBean</CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE>javax.management.MBeanException</CODE><DD><CODE>javax.management.ReflectionException</CODE></DL></DD></DL><HR><A NAME="getMBeanInfo()"><!-- --></A><H3>getMBeanInfo</H3><PRE>public javax.management.MBeanInfo <B>getMBeanInfo</B>()</PRE><DL><DD><DL><DT><B>Specified by:</B><DD><CODE>getMBeanInfo</CODE> in interface <CODE>javax.management.DynamicMBean</CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getMBeanInfo(java.lang.Object)"><!-- --></A><H3>getMBeanInfo</H3><PRE>public javax.management.MBeanInfo <B>getMBeanInfo</B>(java.lang.Object context)</PRE><DL><DD><DL></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getAttributeInfo(org.archive.crawler.settings.CrawlerSettings, java.lang.String)"><!-- --></A><H3>getAttributeInfo</H3><PRE>public javax.management.MBeanAttributeInfo <B>getAttributeInfo</B>(<A HREF="../../../../org/archive/crawler/settings/CrawlerSettings.html" title="class in org.archive.crawler.settings">CrawlerSettings</A> settings, java.lang.String name)</PRE><DL><DD>Get the effective Attribute info for an element of this type from a settings object.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>settings</CODE> - the settings object for which the Attribute info is effective.<DD><CODE>name</CODE> - the name of the element to get the attribute for.<DT><B>Returns:</B><DD>the attribute info</DL></DD></DL><HR><A NAME="getAttributeInfo(java.lang.String)"><!-- --></A><H3>getAttributeInfo</H3><PRE>public javax.management.MBeanAttributeInfo <B>getAttributeInfo</B>(java.lang.String name)</PRE><DL><DD>Get the Attribute info for an element of this type from the global settings.<P><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the element to get the attribute for.<DT><B>Returns:</B><DD>the attribute info</DL></DD></DL><HR><A NAME="getDescription()"><!-- --></A><H3>getDescription</H3><PRE>public java.lang.String <B>getDescription</B>()</PRE><DL><DD>Get the description of this type The d
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?