remoteref.html
来自「API資料大全」· HTML 代码 · 共 530 行 · 第 1/2 页
HTML
530 行
<!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:49 PDT 2000 --><TITLE>Java 2 Platform SE v1.3: Interface RemoteRef</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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/RemoteRef.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../java/rmi/server/RemoteCall.html"><B>PREV CLASS</B></A> <A HREF="../../../java/rmi/server/RMIClientSocketFactory.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> <A HREF="RemoteRef.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: INNER | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><!-- ======== START OF CLASS DATA ======== --><H2><FONT SIZE="-1">java.rmi.server</FONT><BR>Interface RemoteRef</H2><DL><DT><B>All Superinterfaces:</B> <DD><A HREF="../../../java/io/Externalizable.html">Externalizable</A>, <A HREF="../../../java/io/Serializable.html">Serializable</A></DD></DL><DL><DT><B>All Known Subinterfaces:</B> <DD><A HREF="../../../java/rmi/server/ServerRef.html">ServerRef</A></DD></DL><HR><DL><DT>public interface <B>RemoteRef</B><DT>extends <A HREF="../../../java/io/Externalizable.html">Externalizable</A></DL><P><code>RemoteRef</code> represents the handle for a remote object. A <code>RemoteStub</code> uses a remote reference to carry out a remote method invocation to a remote object.<P><DL><DT><B>Since: </B><DD>JDK1.1</DD><DT><B>See Also: </B><DD><A HREF="../../../java/rmi/server/RemoteStub.html"><CODE>RemoteStub</CODE></A></DL><HR><P><!-- ======== INNER CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><A NAME="field_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Field Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/rmi/server/RemoteRef.html#packagePrefix">packagePrefix</A></B></CODE><BR> Initialize the server package prefix: assumes that the implementation of server ref classes (e.g., UnicastRef, UnicastServerRef) are located in the package defined by the prefix.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static long</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/rmi/server/RemoteRef.html#serialVersionUID">serialVersionUID</A></B></CODE><BR> indicate compatibility with JDK 1.1.x version of class.</TD></TR></TABLE> <!-- ======== 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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/rmi/server/RemoteRef.html#done(java.rmi.server.RemoteCall)">done</A></B>(<A HREF="../../../java/rmi/server/RemoteCall.html">RemoteCall</A> call)</CODE><BR> <B>Deprecated.</B> <I>1.2 style stubs no longer use this method. Instead of using a sequence of method calls to the remote reference (<code>newCall</code>, <code>invoke</code>, and <code>done</code>), a stub uses a single method, <code>invoke(Remote, Method, Object[], int)</code>, on the remote reference to carry out parameter marshalling, remote method executing and unmarshalling of the return value. <p>1.2 stubs are generated using <code>rmic -v1.2</code>. By default, <code>rmic</code> generates stubs compatible with JDK1.1 and the Java 2 SDK. The compatible stubs can also be generated using <code>rmic -vcompat</code>.</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/rmi/server/RemoteRef.html#getRefClass(java.io.ObjectOutput)">getRefClass</A></B>(<A HREF="../../../java/io/ObjectOutput.html">ObjectOutput</A> out)</CODE><BR> Returns the class name of the ref type to be serialized onto the stream 'out'.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/rmi/server/RemoteRef.html#invoke(java.rmi.server.RemoteCall)">invoke</A></B>(<A HREF="../../../java/rmi/server/RemoteCall.html">RemoteCall</A> call)</CODE><BR> <B>Deprecated.</B> <I>1.2 style stubs no longer use this method. Instead of using a sequence of method calls to the remote reference (<code>newCall</code>, <code>invoke</code>, and <code>done</code>), a stub uses a single method, <code>invoke(Remote, Method, Object[], int)</code>, on the remote reference to carry out parameter marshalling, remote method executing and unmarshalling of the return value. <p>1.2 stubs are generated using <code>rmic -v1.2</code>. By default, <code>rmic</code> generates stubs compatible with JDK1.1 and the Java 2 SDK. The compatible stubs can also be generated using <code>rmic -vcompat</code>.</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/lang/Object.html">Object</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/rmi/server/RemoteRef.html#invoke(java.rmi.Remote, java.lang.reflect.Method, java.lang.Object[], long)">invoke</A></B>(<A HREF="../../../java/rmi/Remote.html">Remote</A> obj, <A HREF="../../../java/lang/reflect/Method.html">Method</A> method, <A HREF="../../../java/lang/Object.html">Object</A>[] params, long opnum)</CODE><BR> Invoke a method.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/rmi/server/RemoteCall.html">RemoteCall</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/rmi/server/RemoteRef.html#newCall(java.rmi.server.RemoteObject, java.rmi.server.Operation[], int, long)">newCall</A></B>(<A HREF="../../../java/rmi/server/RemoteObject.html">RemoteObject</A> obj, <A HREF="../../../java/rmi/server/Operation.html">Operation</A>[] op, int opnum, long hash)</CODE><BR> <B>Deprecated.</B> <I>1.2 style stubs no longer use this method. Instead of using a sequence of method calls on the stub's the remote reference (<code>newCall</code>, <code>invoke</code>, and <code>done</code>), a stub uses a single method, <code>invoke(Remote, Method, Object[], int)</code>, on the remote reference to carry out parameter marshalling, remote method executing and unmarshalling of the return value. <p>1.2 stubs are generated using <code>rmic -v1.2</code>. By default, <code>rmic</code> generates stubs compatible with JDK1.1 and the Java 2 SDK. The compatible stubs can also be generated using <code>rmic -vcompat</code>.</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/rmi/server/RemoteRef.html#remoteEquals(java.rmi.server.RemoteRef)">remoteEquals</A></B>(<A HREF="../../../java/rmi/server/RemoteRef.html">RemoteRef</A> obj)</CODE><BR> Compares two remote objects for equality.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/rmi/server/RemoteRef.html#remoteHashCode()">remoteHashCode</A></B>()</CODE><BR> Returns a hashcode for a remote object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/rmi/server/RemoteRef.html#remoteToString()">remoteToString</A></B>()</CODE><BR> Returns a String that represents the reference of this remote object.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.io.Externalizable"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from interface java.io.<A HREF="../../../java/io/Externalizable.html">Externalizable</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/io/Externalizable.html#readExternal(java.io.ObjectInput)">readExternal</A>, <A HREF="../../../java/io/Externalizable.html#writeExternal(java.io.ObjectOutput)">writeExternal</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="serialVersionUID"><!-- --></A><H3>serialVersionUID</H3><PRE>public static final long <B>serialVersionUID</B></PRE><DL><DD>indicate compatibility with JDK 1.1.x version of class.</DL><HR><A NAME="packagePrefix"><!-- --></A><H3>packagePrefix</H3><PRE>public static final <A HREF="../../../java/lang/String.html">String</A> <B>packagePrefix</B></PRE><DL>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?