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

📄 monitor.html

📁 j2ee api,很好的api。我这现在有
💻 HTML
📖 第 1 页 / 共 4 页
字号:
<A NAME="RESET_FLAGS_ALREADY_NOTIFIED"><!-- --></A><H3>RESET_FLAGS_ALREADY_NOTIFIED</H3><PRE>protected static final int <B>RESET_FLAGS_ALREADY_NOTIFIED</B></PRE><DL><DD>This flag is used to reset the <A HREF="../../../javax/management/monitor/Monitor.html#alreadyNotifieds"><CODE>alreadyNotifieds</CODE></A> monitor attribute.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.management.monitor.Monitor.RESET_FLAGS_ALREADY_NOTIFIED">Constant Field Values</A></DL></DL><HR><A NAME="OBSERVED_OBJECT_ERROR_NOTIFIED"><!-- --></A><H3>OBSERVED_OBJECT_ERROR_NOTIFIED</H3><PRE>protected static final int <B>OBSERVED_OBJECT_ERROR_NOTIFIED</B></PRE><DL><DD>Flag denoting that a notification has occurred after changing the observed object. This flag is used to check that the new observed object is registered in the MBean server at the time of the first notification.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.management.monitor.Monitor.OBSERVED_OBJECT_ERROR_NOTIFIED">Constant Field Values</A></DL></DL><HR><A NAME="OBSERVED_ATTRIBUTE_ERROR_NOTIFIED"><!-- --></A><H3>OBSERVED_ATTRIBUTE_ERROR_NOTIFIED</H3><PRE>protected static final int <B>OBSERVED_ATTRIBUTE_ERROR_NOTIFIED</B></PRE><DL><DD>Flag denoting that a notification has occurred after changing the observed attribute. This flag is used to check that the new observed attribute belongs to the observed object at the time of the first notification.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.management.monitor.Monitor.OBSERVED_ATTRIBUTE_ERROR_NOTIFIED">Constant Field Values</A></DL></DL><HR><A NAME="OBSERVED_ATTRIBUTE_TYPE_ERROR_NOTIFIED"><!-- --></A><H3>OBSERVED_ATTRIBUTE_TYPE_ERROR_NOTIFIED</H3><PRE>protected static final int <B>OBSERVED_ATTRIBUTE_TYPE_ERROR_NOTIFIED</B></PRE><DL><DD>Flag denoting that a notification has occurred after changing the observed object or the observed attribute. This flag is used to check that the observed attribute type is correct (depending on the monitor in use) at the time of the first notification.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.management.monitor.Monitor.OBSERVED_ATTRIBUTE_TYPE_ERROR_NOTIFIED">Constant Field Values</A></DL></DL><HR><A NAME="RUNTIME_ERROR_NOTIFIED"><!-- --></A><H3>RUNTIME_ERROR_NOTIFIED</H3><PRE>protected static final int <B>RUNTIME_ERROR_NOTIFIED</B></PRE><DL><DD>Flag denoting that a notification has occurred after changing the observed object or the observed attribute. This flag is used to notify any exception (except the cases described above) when trying to get the value of the observed attribute at the time of the first notification.<P><DL><DT><B>See Also:</B><DD><A HREF="../../../constant-values.html#javax.management.monitor.Monitor.RUNTIME_ERROR_NOTIFIED">Constant Field Values</A></DL></DL><HR><A NAME="dbgTag"><!-- --></A><H3>dbgTag</H3><PRE>protected <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> <B>dbgTag</B></PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>No replacement.</I><P><DD>This field is retained for compatibility but should not be referenced.<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="Monitor()"><!-- --></A><H3>Monitor</H3><PRE>public <B>Monitor</B>()</PRE><DL></DL><!-- ============ 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="preRegister(javax.management.MBeanServer, javax.management.ObjectName)"><!-- --></A><H3>preRegister</H3><PRE>public <A HREF="../../../javax/management/ObjectName.html" title="class in javax.management">ObjectName</A> <B>preRegister</B>(<A HREF="../../../javax/management/MBeanServer.html" title="interface in javax.management">MBeanServer</A>&nbsp;server,                              <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/lang/Exception.html" title="class or interface in java.lang">Exception</A></PRE><DL><DD>Allows the monitor MBean to perform any operations it needs before being registered in the MBean server. <P> Initializes the reference to the MBean server.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/management/MBeanRegistration.html#preRegister(javax.management.MBeanServer, javax.management.ObjectName)">preRegister</A></CODE> in interface <CODE><A HREF="../../../javax/management/MBeanRegistration.html" title="interface in javax.management">MBeanRegistration</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>server</CODE> - The MBean server in which the monitor MBean will be registered.<DD><CODE>name</CODE> - The object name of the monitor MBean.<DT><B>Returns:</B><DD>The name of the monitor MBean registered.<DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Exception.html" title="class or interface in java.lang">Exception</A></CODE></DL></DD></DL><HR><A NAME="postRegister(java.lang.Boolean)"><!-- --></A><H3>postRegister</H3><PRE>public void <B>postRegister</B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Boolean.html" title="class or interface in java.lang">Boolean</A>&nbsp;registrationDone)</PRE><DL><DD>Allows the monitor MBean to perform any operations needed after having been registered in the MBean server or after the registration has failed. <P> Not used in this context.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/management/MBeanRegistration.html#postRegister(java.lang.Boolean)">postRegister</A></CODE> in interface <CODE><A HREF="../../../javax/management/MBeanRegistration.html" title="interface in javax.management">MBeanRegistration</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>registrationDone</CODE> - Indicates whether or not the MBean has been successfully registered in the MBean server. The value false means that the registration phase has failed.</DL></DD></DL><HR><A NAME="preDeregister()"><!-- --></A><H3>preDeregister</H3><PRE>public void <B>preDeregister</B>()                   throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Exception.html" title="class or interface in java.lang">Exception</A></PRE><DL><DD>Allows the monitor MBean to perform any operations it needs before being unregistered by the MBean server. <P> Stops the monitor.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/management/MBeanRegistration.html#preDeregister()">preDeregister</A></CODE> in interface <CODE><A HREF="../../../javax/management/MBeanRegistration.html" title="interface in javax.management">MBeanRegistration</A></CODE></DL></DD><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Exception.html" title="class or interface in java.lang">Exception</A></CODE></DL></DD></DL><HR><A NAME="postDeregister()"><!-- --></A><H3>postDeregister</H3><PRE>public void <B>postDeregister</B>()</PRE><DL><DD>Allows the monitor MBean to perform any operations needed after having been unregistered by the MBean server. <P> Not used in this context.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/management/MBeanRegistration.html#postDeregister()">postDeregister</A></CODE> in interface <CODE><A HREF="../../../javax/management/MBeanRegistration.html" title="interface in javax.management">MBeanRegistration</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="start()"><!-- --></A><H3>start</H3><PRE>public abstract void <B>start</B>()</PRE><DL><DD>Starts the monitor.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/management/monitor/MonitorMBean.html#start()">start</A></CODE> in interface <CODE><A HREF="../../../javax/management/monitor/MonitorMBean.html" title="interface in javax.management.monitor">MonitorMBean</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="stop()"><!-- --></A><H3>stop</H3><PRE>public abstract void <B>stop</B>()</PRE><DL><DD>Stops the monitor.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/management/monitor/MonitorMBean.html#stop()">stop</A></CODE> in interface <CODE><A HREF="../../../javax/management/monitor/MonitorMBean.html" title="interface in javax.management.monitor">MonitorMBean</A></CODE></DL></DD><DD><DL></DL></DD></DL><HR><A NAME="getObservedObject()"><!-- --></A><H3>getObservedObject</H3><PRE>public <A HREF="../../../javax/management/ObjectName.html" title="class in javax.management">ObjectName</A> <B>getObservedObject</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>As of JMX 1.2, replaced by <A HREF="../../../javax/management/monitor/Monitor.html#getObservedObjects()"><CODE>getObservedObjects()</CODE></A></I><P><DD>Returns the object name of the first object in the set of observed MBeans, or <code>null</code> if there is no such object.<P><DD><DL><DT><B>Specified by:</B><DD><CODE><A HREF="../../../javax/management/monitor/MonitorMBean.html#getObservedObject()">getObservedObject</A></CODE> in interface <CODE><A HREF="../../../javax/management/monitor/MonitorMBean.html" title="interface in javax.management.monitor">MonitorMBean</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>The object being observed.<DT><B>See Also:</B><DD><A HREF="../../../javax/management/monitor/Monitor.html#setObservedObject(javax.management.ObjectName)"><CODE>setObservedObject(ObjectName)</CODE></A></DL></DD></DL><HR><A NAME="setObservedObject(javax.management.ObjectName)"><!-- --></A><H3>setObservedObject</H3><PRE>public void <B>setObservedObject</B>(<A HREF="../../../javax/management/ObjectName.html" title="class in javax.management">ObjectName</A>&nbsp;object)                       throws <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/IllegalArgumentException.html" title="class or interface in java.lang">IllegalArgumentException</A></PRE><DL>

⌨️ 快捷键说明

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