📄 registry.html
字号:
<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="REGISTRY_PORT"><!-- --></A><H3>REGISTRY_PORT</H3><PRE>public static final int <B>REGISTRY_PORT</B></PRE><DL><DD>Well known port for registry.</DL><!-- ========= 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="lookup(java.lang.String)"><!-- --></A><H3>lookup</H3><PRE>public <A HREF="../../../java/rmi/Remote.html">Remote</A> <B>lookup</B>(java.lang.String name) throws <A HREF="../../../java/rmi/RemoteException.html">RemoteException</A>, <A HREF="../../../java/rmi/NotBoundException.html">NotBoundException</A>, <A HREF="../../../java/rmi/AccessException.html">AccessException</A></PRE><DL><DD>Returns the remote reference bound to the specified <code>name</code> in this registry.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name for the remote reference to look up<DT><B>Returns:</B><DD>a reference to a remote object<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/rmi/NotBoundException.html">NotBoundException</A></CODE> - if <code>name</code> is not currently bound<DD><CODE><A HREF="../../../java/rmi/RemoteException.html">RemoteException</A></CODE> - if remote communication with the registry failed; if exception is a <code>ServerException</code> containing an <code>AccessException</code>, then the registry denies the caller access to perform this operation<DD><CODE><A HREF="../../../java/rmi/AccessException.html">AccessException</A></CODE> - if this registry is local and it denies the caller access to perform this operation<DD><CODE>NullPointerException</CODE> - if <code>name</code> is <code>null</code></DL></DD></DL><HR><A NAME="bind(java.lang.String, java.rmi.Remote)"><!-- --></A><H3>bind</H3><PRE>public void <B>bind</B>(java.lang.String name, <A HREF="../../../java/rmi/Remote.html">Remote</A> obj) throws <A HREF="../../../java/rmi/RemoteException.html">RemoteException</A>, <A HREF="../../../java/rmi/AlreadyBoundException.html">AlreadyBoundException</A>, <A HREF="../../../java/rmi/AccessException.html">AccessException</A></PRE><DL><DD>Binds a remote reference to the specified <code>name</code> in this registry.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name to associate with the remote reference<DD><CODE>obj</CODE> - a reference to a remote object (usually a stub)<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/rmi/AlreadyBoundException.html">AlreadyBoundException</A></CODE> - if <code>name</code> is already bound<DD><CODE><A HREF="../../../java/rmi/RemoteException.html">RemoteException</A></CODE> - if remote communication with the registry failed; if exception is a <code>ServerException</code> containing an <code>AccessException</code>, then the registry denies the caller access to perform this operation (if originating from a non-local host, for example)<DD><CODE><A HREF="../../../java/rmi/AccessException.html">AccessException</A></CODE> - if this registry is local and it denies the caller access to perform this operation<DD><CODE>NullPointerException</CODE> - if <code>name</code> is <code>null</code>, or if <code>obj</code> is <code>null</code></DL></DD></DL><HR><A NAME="unbind(java.lang.String)"><!-- --></A><H3>unbind</H3><PRE>public void <B>unbind</B>(java.lang.String name) throws <A HREF="../../../java/rmi/RemoteException.html">RemoteException</A>, <A HREF="../../../java/rmi/NotBoundException.html">NotBoundException</A>, <A HREF="../../../java/rmi/AccessException.html">AccessException</A></PRE><DL><DD>Removes the binding for the specified <code>name</code> in this registry.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name of the binding to remove<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/rmi/NotBoundException.html">NotBoundException</A></CODE> - if <code>name</code> is not currently bound<DD><CODE><A HREF="../../../java/rmi/RemoteException.html">RemoteException</A></CODE> - if remote communication with the registry failed; if exception is a <code>ServerException</code> containing an <code>AccessException</code>, then the registry denies the caller access to perform this operation (if originating from a non-local host, for example)<DD><CODE><A HREF="../../../java/rmi/AccessException.html">AccessException</A></CODE> - if this registry is local and it denies the caller access to perform this operation<DD><CODE>NullPointerException</CODE> - if <code>name</code> is <code>null</code></DL></DD></DL><HR><A NAME="rebind(java.lang.String, java.rmi.Remote)"><!-- --></A><H3>rebind</H3><PRE>public void <B>rebind</B>(java.lang.String name, <A HREF="../../../java/rmi/Remote.html">Remote</A> obj) throws <A HREF="../../../java/rmi/RemoteException.html">RemoteException</A>, <A HREF="../../../java/rmi/AccessException.html">AccessException</A></PRE><DL><DD>Replaces the binding for the specified <code>name</code> in this registry with the supplied remote reference. If there is an existing binding for the specified <code>name</code>, it is discarded.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the name to associate with the remote reference<DD><CODE>obj</CODE> - a reference to a remote object (usually a stub)<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/rmi/RemoteException.html">RemoteException</A></CODE> - if remote communication with the registry failed; if exception is a <code>ServerException</code> containing an <code>AccessException</code>, then the registry denies the caller access to perform this operation (if originating from a non-local host, for example)<DD><CODE><A HREF="../../../java/rmi/AccessException.html">AccessException</A></CODE> - if this registry is local and it denies the caller access to perform this operation<DD><CODE>NullPointerException</CODE> - if <code>name</code> is <code>null</code>, or if <code>obj</code> is <code>null</code></DL></DD></DL><HR><A NAME="list()"><!-- --></A><H3>list</H3><PRE>public java.lang.String[] <B>list</B>() throws <A HREF="../../../java/rmi/RemoteException.html">RemoteException</A>, <A HREF="../../../java/rmi/AccessException.html">AccessException</A></PRE><DL><DD>Returns an array of the names bound in this registry. The array will contain a snapshot of the names bound in this registry at the time of the given invocation of this method.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>an array of the names bound in this registry<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/rmi/RemoteException.html">RemoteException</A></CODE> - if remote communication with the registry failed; if exception is a <code>ServerException</code> containing an <code>AccessException</code>, then the registry denies the caller access to perform this operation<DD><CODE><A HREF="../../../java/rmi/AccessException.html">AccessException</A></CODE> - if this registry is local and it denies the caller access to perform this operation</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> </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="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>J2ME RMI Optional Package</EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> PREV CLASS NEXT CLASS</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A> <A HREF="Registry.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><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 + -