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>&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/RemoteRef.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/server/RemoteCall.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<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>  &nbsp;&nbsp;<A HREF="RemoteRef.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="#field_summary">FIELD</A>&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&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.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&nbsp;<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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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&nbsp;long</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/rmi/server/RemoteRef.html#serialVersionUID">serialVersionUID</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;indicate compatibility with JDK 1.1.x version of class.</TD></TR></TABLE>&nbsp;<!-- ======== 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/server/RemoteRef.html#done(java.rmi.server.RemoteCall)">done</A></B>(<A HREF="../../../java/rmi/server/RemoteCall.html">RemoteCall</A>&nbsp;call)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<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>&nbsp;<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>&nbsp;out)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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>&nbsp;call)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<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>&nbsp;<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>&nbsp;obj,       <A HREF="../../../java/lang/reflect/Method.html">Method</A>&nbsp;method,       <A HREF="../../../java/lang/Object.html">Object</A>[]&nbsp;params,       long&nbsp;opnum)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Invoke a method.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<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>&nbsp;obj,        <A HREF="../../../java/rmi/server/Operation.html">Operation</A>[]&nbsp;op,        int&nbsp;opnum,        long&nbsp;hash)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;<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>&nbsp;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>&nbsp;obj)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Compares two remote objects for equality.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/rmi/server/RemoteRef.html#remoteHashCode()">remoteHashCode</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a String that represents the reference of this remote object.</TD></TR></TABLE>&nbsp;<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>&nbsp;<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 + -
显示快捷键?