activationmonitor.html

来自「API資料大全」· HTML 代码 · 共 269 行

HTML
269
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc on Thu Apr 27 23:35:44 PDT 2000 --><TITLE>Java 2 Platform SE v1.3: Interface  ActivationMonitor</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style"></HEAD><BODY BGCOLOR="white"><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ActivationMonitor.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../java/rmi/activation/ActivationInstantiator.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../java/rmi/activation/ActivationSystem.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="ActivationMonitor.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">java.rmi.activation</FONT><BR>Interface  ActivationMonitor</H2><DL><DT><B>All Superinterfaces:</B> <DD><A HREF="../../../java/rmi/Remote.html">Remote</A></DD></DL><HR><DL><DT>public interface <B>ActivationMonitor</B><DT>extends <A HREF="../../../java/rmi/Remote.html">Remote</A></DL><P>An <code>ActivationMonitor</code> is specific to an <code>ActivationGroup</code> and is obtained when a group is reported active via a call to <code>ActivationSystem.activeGroup</code> (this is done internally). An activation group is responsible for informing its <code>ActivationMonitor</code> when either: its objects become active or inactive, or the group as a whole becomes inactive.<P><DL><DT><B>Since: </B><DD>1.2</DD><DT><B>See Also: </B><DD><A HREF="../../../java/rmi/activation/Activator.html"><CODE>Activator</CODE></A>, <A HREF="../../../java/rmi/activation/ActivationSystem.html"><CODE>ActivationSystem</CODE></A>, <A HREF="../../../java/rmi/activation/ActivationGroup.html"><CODE>ActivationGroup</CODE></A></DL><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></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="../../../java/rmi/activation/ActivationMonitor.html#activeObject(java.rmi.activation.ActivationID, java.rmi.MarshalledObject)">activeObject</A></B>(<A HREF="../../../java/rmi/activation/ActivationID.html">ActivationID</A>&nbsp;id,             <A HREF="../../../java/rmi/MarshalledObject.html">MarshalledObject</A>&nbsp;obj)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Informs that an object is now active.</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="../../../java/rmi/activation/ActivationMonitor.html#inactiveGroup(java.rmi.activation.ActivationGroupID, long)">inactiveGroup</A></B>(<A HREF="../../../java/rmi/activation/ActivationGroupID.html">ActivationGroupID</A>&nbsp;id,              long&nbsp;incarnation)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Informs that the group is now inactive.</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="../../../java/rmi/activation/ActivationMonitor.html#inactiveObject(java.rmi.activation.ActivationID)">inactiveObject</A></B>(<A HREF="../../../java/rmi/activation/ActivationID.html">ActivationID</A>&nbsp;id)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;An activation group calls its monitor's <code>inactiveObject</code> method when an object in its group becomes inactive (deactivates).</TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="inactiveObject(java.rmi.activation.ActivationID)"><!-- --></A><H3>inactiveObject</H3><PRE>public void <B>inactiveObject</B>(<A HREF="../../../java/rmi/activation/ActivationID.html">ActivationID</A>&nbsp;id)                    throws <A HREF="../../../java/rmi/activation/UnknownObjectException.html">UnknownObjectException</A>,                           <A HREF="../../../java/rmi/RemoteException.html">RemoteException</A></PRE><DL><DD>An activation group calls its monitor's <code>inactiveObject</code> method when an object in its group becomes inactive (deactivates).  An activation group discovers that an object (that it participated in activating) in its VM is no longer active, via calls to the activation group's <code>inactiveObject</code> method. <p> The <code>inactiveObject</code> call informs the <code>ActivationMonitor</code> that the remote object reference it holds for the object with the activation identifier, <code>id</code>, is no longer valid. The monitor considers the reference associated with <code>id</code> as a stale reference. Since the reference is considered stale, a subsequent <code>activate</code> call for the same activation identifier results in re-activating the remote object.<p><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>id</CODE> - the object's activation identifier<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/rmi/activation/UnknownObjectException.html">UnknownObjectException</A></CODE> - if object is unknown<DD><CODE><A HREF="../../../java/rmi/RemoteException.html">RemoteException</A></CODE> - if remote call fails<DT><B>Since: </B><DD>1.2</DD></DL></DD></DL><HR><A NAME="activeObject(java.rmi.activation.ActivationID, java.rmi.MarshalledObject)"><!-- --></A><H3>activeObject</H3><PRE>public void <B>activeObject</B>(<A HREF="../../../java/rmi/activation/ActivationID.html">ActivationID</A>&nbsp;id,                         <A HREF="../../../java/rmi/MarshalledObject.html">MarshalledObject</A>&nbsp;obj)                  throws <A HREF="../../../java/rmi/activation/UnknownObjectException.html">UnknownObjectException</A>,                         <A HREF="../../../java/rmi/RemoteException.html">RemoteException</A></PRE><DL><DD>Informs that an object is now active. An <code>ActivationGroup</code> informs its monitor if an object in its group becomes active by other means than being activated directly (i.e., the object is registered and "activated" itself).<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>id</CODE> - the active object's id<DD><CODE>obj</CODE> - the marshalled form of the object's stub<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/rmi/activation/UnknownObjectException.html">UnknownObjectException</A></CODE> - if object is unknown<DD><CODE><A HREF="../../../java/rmi/RemoteException.html">RemoteException</A></CODE> - if remote call fails<DT><B>Since: </B><DD>1.2</DD></DL></DD></DL><HR><A NAME="inactiveGroup(java.rmi.activation.ActivationGroupID, long)"><!-- --></A><H3>inactiveGroup</H3><PRE>public void <B>inactiveGroup</B>(<A HREF="../../../java/rmi/activation/ActivationGroupID.html">ActivationGroupID</A>&nbsp;id,                          long&nbsp;incarnation)                   throws <A HREF="../../../java/rmi/activation/UnknownGroupException.html">UnknownGroupException</A>,                          <A HREF="../../../java/rmi/RemoteException.html">RemoteException</A></PRE><DL><DD>Informs that the group is now inactive. The group will be recreated upon a subsequent request to activate an object within the group. A group becomes inactive when all objects in the group report that they are inactive.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>id</CODE> - the group's id<DD><CODE>incarnation</CODE> - the group's incarnation number<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/rmi/activation/UnknownGroupException.html">UnknownGroupException</A></CODE> - if group is unknown<DD><CODE><A HREF="../../../java/rmi/RemoteException.html">RemoteException</A></CODE> - if remote call fails<DT><B>Since: </B><DD>1.2</DD></DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/ActivationMonitor.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../java/rmi/activation/ActivationInstantiator.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../java/rmi/activation/ActivationSystem.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="ActivationMonitor.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation  contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font></BODY></HTML>

⌨️ 快捷键说明

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