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

📄 locateregistry.html

📁 请笑纳 请笑纳 请笑纳 请笑纳 请笑纳 请笑纳
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!-- ============ 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="getRegistry()"><!-- --></A><H3>getRegistry</H3><PRE>public static <A HREF="../../../java/rmi/registry/Registry.html">Registry</A> <B>getRegistry</B>()                            throws <A HREF="../../../java/rmi/RemoteException.html">RemoteException</A></PRE><DL><DD>Returns a reference to the the remote object <code>Registry</code> for the local host on the default registry port of 1099.<DD><DL><DT><B>Returns:</B><DD>reference (a stub) to the remote object registry<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/rmi/RemoteException.html">RemoteException</A></CODE> - if the reference could not be created<DT><B>Since: </B><DD>JDK1.1</DD></DL></DD></DL><HR><A NAME="getRegistry(int)"><!-- --></A><H3>getRegistry</H3><PRE>public static <A HREF="../../../java/rmi/registry/Registry.html">Registry</A> <B>getRegistry</B>(int&nbsp;port)                            throws <A HREF="../../../java/rmi/RemoteException.html">RemoteException</A></PRE><DL><DD>Returns a reference to the the remote object <code>Registry</code> for the local host on the specified <code>port</code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>port</CODE> - port on which the registry accepts requests<DT><B>Returns:</B><DD>reference (a stub) to the remote object registry<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/rmi/RemoteException.html">RemoteException</A></CODE> - if the reference could not be created<DT><B>Since: </B><DD>JDK1.1</DD></DL></DD></DL><HR><A NAME="getRegistry(java.lang.String)"><!-- --></A><H3>getRegistry</H3><PRE>public static <A HREF="../../../java/rmi/registry/Registry.html">Registry</A> <B>getRegistry</B>(java.lang.String&nbsp;host)                            throws <A HREF="../../../java/rmi/RemoteException.html">RemoteException</A></PRE><DL><DD>Returns a reference to the remote object <code>Registry</code> on the specified <code>host</code> on the default registry port of 1099.  If <code>host</code> is <code>null</code>, the local host is used.<DD><DL><DT><B>Parameters:</B><DD><CODE>host</CODE> - host for the remote registry<DT><B>Returns:</B><DD>reference (a stub) to the remote object registry<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/rmi/RemoteException.html">RemoteException</A></CODE> - if the reference could not be created<DT><B>Since: </B><DD>JDK1.1</DD></DL></DD></DL><HR><A NAME="getRegistry(java.lang.String, int)"><!-- --></A><H3>getRegistry</H3><PRE>public static <A HREF="../../../java/rmi/registry/Registry.html">Registry</A> <B>getRegistry</B>(java.lang.String&nbsp;host,                                   int&nbsp;port)                            throws <A HREF="../../../java/rmi/RemoteException.html">RemoteException</A></PRE><DL><DD>Returns a reference to the remote object <code>Registry</code> on the specified <code>host</code> and <code>port</code>. If <code>host</code> is <code>null</code>, the local host is used.<DD><DL><DT><B>Parameters:</B><DD><CODE>host</CODE> - host for the remote registry<DD><CODE>port</CODE> - port on which the registry accepts requests<DT><B>Returns:</B><DD>reference (a stub) to the remote object registry<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/rmi/RemoteException.html">RemoteException</A></CODE> - if the reference could not be created<DT><B>Since: </B><DD>JDK1.1</DD></DL></DD></DL><HR><A NAME="getRegistry(java.lang.String, int, java.rmi.server.RMIClientSocketFactory)"><!-- --></A><H3>getRegistry</H3><PRE>public static <A HREF="../../../java/rmi/registry/Registry.html">Registry</A> <B>getRegistry</B>(java.lang.String&nbsp;host,                                   int&nbsp;port,                                   <A HREF="../../../java/rmi/server/RMIClientSocketFactory.html">RMIClientSocketFactory</A>&nbsp;csf)                            throws <A HREF="../../../java/rmi/RemoteException.html">RemoteException</A></PRE><DL><DD>Returns a locally created remote reference to the remote object <code>Registry</code> on the specified <code>host</code> and <code>port</code>.  Communication with this remote registry will use the supplied <code>RMIClientSocketFactory</code> <code>csf</code> to create <code>Socket</code> connections to the registry on the remote <code>host</code> and <code>port</code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>host</CODE> - host for the remote registry<DD><CODE>port</CODE> - port on which the registry accepts requests<DD><CODE>csf</CODE> - client-side <code>Socket</code> factory used to      make connections to the registry.  If <code>csf</code>      is null, then the default client-side <code>Socket</code>      factory will be used in the registry stub.<DT><B>Returns:</B><DD>reference (a stub) to the remote registry<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/rmi/RemoteException.html">RemoteException</A></CODE> - if the reference could not be created<DT><B>Since: </B><DD>1.2</DD></DL></DD></DL><HR><A NAME="createRegistry(int)"><!-- --></A><H3>createRegistry</H3><PRE>public static <A HREF="../../../java/rmi/registry/Registry.html">Registry</A> <B>createRegistry</B>(int&nbsp;port)                               throws <A HREF="../../../java/rmi/RemoteException.html">RemoteException</A></PRE><DL><DD>Creates and exports a <code>Registry</code> on the local host that accepts requests on the specified <code>port</code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>port</CODE> - the port on which the registry accepts requests<DT><B>Returns:</B><DD>the registry<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/rmi/RemoteException.html">RemoteException</A></CODE> - if the registry could not be exported<DT><B>Since: </B><DD>JDK1.1</DD></DL></DD></DL><HR><A NAME="createRegistry(int, java.rmi.server.RMIClientSocketFactory, java.rmi.server.RMIServerSocketFactory)"><!-- --></A><H3>createRegistry</H3><PRE>public static <A HREF="../../../java/rmi/registry/Registry.html">Registry</A> <B>createRegistry</B>(int&nbsp;port,                                      <A HREF="../../../java/rmi/server/RMIClientSocketFactory.html">RMIClientSocketFactory</A>&nbsp;csf,                                      <A HREF="../../../java/rmi/server/RMIServerSocketFactory.html">RMIServerSocketFactory</A>&nbsp;ssf)                               throws <A HREF="../../../java/rmi/RemoteException.html">RemoteException</A></PRE><DL><DD>Creates and exports a <code>Registry</code> on the local host that uses custom socket factories for communication with that registry. The registry that is created listens for incoming requests on the given <code>port</code> using a <code>ServerSocket</code> created from the supplied <code>RMIServerSocketFactory</code>.  A client that receives a reference to this registry will use a <code>Socket</code> created from the supplied <code>RMIClientSocketFactory</code>.<DD><DL><DT><B>Parameters:</B><DD><CODE>port</CODE> - port on which the registry accepts requests<DD><CODE>csf</CODE> - client-side <code>Socket</code> factory used to      make connections to the registry<DD><CODE>ssf</CODE> - server-side <code>ServerSocket</code> factory      used to accept connections to the registry<DT><B>Returns:</B><DD>the registry<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/rmi/RemoteException.html">RemoteException</A></CODE> - if the registry could not be exported<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="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>J2ME RMI Optional Package</EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;PREV CLASS&nbsp;&nbsp;NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="LocateRegistry.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">Copyright 1994-2002 Sun Microsystems, Inc. All Rights Reserved.</font> </BODY></HTML>

⌨️ 快捷键说明

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