author | sangheki |
Mon, 04 Jun 2018 21:20:16 -0700 | |
changeset 50396 | 7f48bff40a9a |
parent 47216 | 71c04702a3d5 |
permissions | -rw-r--r-- |
2 | 1 |
/* |
5506 | 2 |
* Copyright (c) 1997, 2004, Oracle and/or its affiliates. All rights reserved. |
2 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
5 |
* This code is free software; you can redistribute it and/or modify it |
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
|
5506 | 7 |
* published by the Free Software Foundation. Oracle designates this |
2 | 8 |
* particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
* by Oracle in the LICENSE file that accompanied this code. |
2 | 10 |
* |
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
* accompanied this code). |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License version |
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
* |
|
5506 | 21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
2 | 24 |
*/ |
25 |
||
26 |
package java.rmi.registry; |
|
27 |
||
28 |
import java.rmi.RemoteException; |
|
29 |
import java.rmi.UnknownHostException; |
|
30 |
||
31 |
/** |
|
32 |
* <code>RegistryHandler</code> is an interface used internally by the RMI |
|
33 |
* runtime in previous implementation versions. It should never be accessed |
|
34 |
* by application code. |
|
35 |
* |
|
36 |
* @author Ann Wollrath |
|
24865
09b1d992ca72
8044740: Convert all JDK versions used in @since tag to 1.n[.n] in jdk repo
henryjen
parents:
5506
diff
changeset
|
37 |
* @since 1.1 |
2 | 38 |
* @deprecated no replacement |
39 |
*/ |
|
40 |
@Deprecated |
|
41 |
public interface RegistryHandler { |
|
42 |
||
43 |
/** |
|
44 |
* Returns a "stub" for contacting a remote registry |
|
45 |
* on the specified host and port. |
|
46 |
* |
|
47 |
* @deprecated no replacement. As of the Java 2 platform v1.2, RMI no |
|
48 |
* longer uses the <code>RegistryHandler</code> to obtain the registry's |
|
49 |
* stub. |
|
50 |
* @param host name of remote registry host |
|
51 |
* @param port remote registry port |
|
52 |
* @return remote registry stub |
|
53 |
* @throws RemoteException if a remote error occurs |
|
54 |
* @throws UnknownHostException if unable to resolve given hostname |
|
55 |
*/ |
|
56 |
@Deprecated |
|
57 |
Registry registryStub(String host, int port) |
|
58 |
throws RemoteException, UnknownHostException; |
|
59 |
||
60 |
/** |
|
61 |
* Constructs and exports a Registry on the specified port. |
|
62 |
* The port must be non-zero. |
|
63 |
* |
|
64 |
* @deprecated no replacement. As of the Java 2 platform v1.2, RMI no |
|
65 |
* longer uses the <code>RegistryHandler</code> to obtain the registry's |
|
66 |
* implementation. |
|
67 |
* @param port port to export registry on |
|
68 |
* @return registry stub |
|
69 |
* @throws RemoteException if a remote error occurs |
|
70 |
*/ |
|
71 |
@Deprecated |
|
72 |
Registry registryImpl(int port) throws RemoteException; |
|
73 |
} |