activationgroup.html

来自「API資料大全」· HTML 代码 · 共 647 行 · 第 1/3 页

HTML
647
字号
<!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:45 PDT 2000 --><TITLE>Java 2 Platform SE v1.3: Class  ActivationGroup</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/ActivationGroup.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/ActivationDesc.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../java/rmi/activation/ActivationGroupDesc.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="ActivationGroup.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;<A HREF="#fields_inherited_from_class_java.rmi.server.RemoteObject">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&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>Class  ActivationGroup</H2><PRE><A HREF="../../../java/lang/Object.html">java.lang.Object</A>  |  +--<A HREF="../../../java/rmi/server/RemoteObject.html">java.rmi.server.RemoteObject</A>        |        +--<A HREF="../../../java/rmi/server/RemoteServer.html">java.rmi.server.RemoteServer</A>              |              +--<A HREF="../../../java/rmi/server/UnicastRemoteObject.html">java.rmi.server.UnicastRemoteObject</A>                    |                    +--<B>java.rmi.activation.ActivationGroup</B></PRE><DL><DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../java/rmi/activation/ActivationInstantiator.html">ActivationInstantiator</A>, <A HREF="../../../java/rmi/Remote.html">Remote</A>, <A HREF="../../../java/io/Serializable.html">Serializable</A></DD></DL><HR><DL><DT>public abstract class <B>ActivationGroup</B><DT>extends <A HREF="../../../java/rmi/server/UnicastRemoteObject.html">UnicastRemoteObject</A><DT>implements <A HREF="../../../java/rmi/activation/ActivationInstantiator.html">ActivationInstantiator</A></DL><P>An <code>ActivationGroup</code> is responsible for creating new instances of "activatable" objects in its group, informing its <code>ActivationMonitor</code> when either: its object's become active or inactive, or the group as a whole becomes inactive. <p> An <code>ActivationGroup</code> is <i>initially</i> created in one of several ways: <ul> <li>as a side-effect of creating an <code>ActivationDesc</code>     (using its first constructor) for the first activatable     object in the group, or <li>via the <code>ActivationGroup.createGroup</code> method <li>as a side-effect of activating the first object in a group     whose <code>ActivationGroupDesc</code> was only registered.</ul><p> Only the activator can <i>recreate</i> an <code>ActivationGroup</code>.  The activator spawns, as needed, a separate VM (as a child process, for example) for each registered activation group and directs activation requests to the appropriate group. It is implementation specific how VMs are spawned. An activation group is created via the <code>ActivationGroup.createGroup</code> static method. The <code>createGroup</code> method has two requirements on the group to be created: 1) the group must be a concrete subclass of <code>ActivationGroup</code>, and 2) the group must have a constructor that takes two arguments: <ul> <li> the group's <code>ActivationGroupID</code>, and <li> the group's initialization data (in a      <code>java.rmi.MarshalledObject</code>)</ul><p> When created, the default implementation of <code>ActivationGroup</code> will override the system properties with the properties requested when its <code>ActivationGroupDesc</code> was created, and will set a <code>java.rmi.RMISecurityManager</code> as the default system security manager.  If your application requires specific properties to be set when objects are activated in the group, the application should create a special <code>Properties</code> object containing these properties, then create an <code>ActivationGroupDesc</code> with the <code>Properties</code> object, and use <code>ActivationGroup.createGroup</code> before creating any <code>ActivationDesc</code>s (before the default <code>ActivationGroupDesc</code> is created).  If your application requires the use of a security manager other than <code>java.rmi.RMISecurityManager</code>, in the ActivativationGroupDescriptor properties list you can set <code>java.security.manager</code> property to the name of the security manager you would like to install.<P><DL><DT><B>Since: </B><DD>1.2</DD><DT><B>See Also: </B><DD><A HREF="../../../java/rmi/activation/ActivationInstantiator.html"><CODE>ActivationInstantiator</CODE></A>, <A HREF="../../../java/rmi/activation/ActivationGroupDesc.html"><CODE>ActivationGroupDesc</CODE></A>, <A HREF="../../../java/rmi/activation/ActivationGroupID.html"><CODE>ActivationGroupID</CODE></A>, <A HREF="../../../serialized-form.html#java.rmi.activation.ActivationGroup">Serialized Form</A></DL><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="fields_inherited_from_class_java.rmi.server.RemoteObject"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Fields inherited from class java.rmi.server.<A HREF="../../../java/rmi/server/RemoteObject.html">RemoteObject</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/rmi/server/RemoteObject.html#ref">ref</A></CODE></TD></TR></TABLE>&nbsp;<!-- ======== CONSTRUCTOR SUMMARY ======== --><A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Constructor Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected </CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/rmi/activation/ActivationGroup.html#ActivationGroup(java.rmi.activation.ActivationGroupID)">ActivationGroup</A></B>(<A HREF="../../../java/rmi/activation/ActivationGroupID.html">ActivationGroupID</A>&nbsp;groupID)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Constructs and exports an activation group as a UnicastRemoteObject so that a client can invoke its newInstance method.</TD></TR></TABLE>&nbsp;<!-- ========== 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>protected &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/rmi/activation/ActivationGroup.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;mobj)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;This protected method is necessary for subclasses to make the <code>activeObject</code> callback to the group's monitor.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract &nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/rmi/activation/ActivationGroup.html#activeObject(java.rmi.activation.ActivationID, java.rmi.Remote)">activeObject</A></B>(<A HREF="../../../java/rmi/activation/ActivationID.html">ActivationID</A>&nbsp;id,             <A HREF="../../../java/rmi/Remote.html">Remote</A>&nbsp;obj)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The group's <code>activeObject</code> method is called when an object is exported (either by <code>Activatable</code> object construction or an explicit call to <code>Activatable.exportObject</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../java/rmi/activation/ActivationGroup.html">ActivationGroup</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/rmi/activation/ActivationGroup.html#createGroup(java.rmi.activation.ActivationGroupID, java.rmi.activation.ActivationGroupDesc, long)">createGroup</A></B>(<A HREF="../../../java/rmi/activation/ActivationGroupID.html">ActivationGroupID</A>&nbsp;id,            <A HREF="../../../java/rmi/activation/ActivationGroupDesc.html">ActivationGroupDesc</A>&nbsp;desc,            long&nbsp;incarnation)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Create and set the activation group for the current VM.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../java/rmi/activation/ActivationGroupID.html">ActivationGroupID</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/rmi/activation/ActivationGroup.html#currentGroupID()">currentGroupID</A></B>()</CODE>

⌨️ 快捷键说明

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