| Package | Description | 
|---|---|
| java.rmi.registry | Provides a class and two interfaces for the RMI registry. | 
| Modifier and Type | Method and Description | 
|---|---|
| static Registry | LocateRegistry. createRegistry(int port)Creates and exports a  Registryinstance on the local
 host that accepts requests on the specifiedport. | 
| static Registry | LocateRegistry. createRegistry(int port,
              RMIClientSocketFactory csf,
              RMIServerSocketFactory ssf)Creates and exports a  Registryinstance on the local
 host that uses custom socket factories for communication with that
 instance. | 
| static Registry | LocateRegistry. getRegistry()Returns a reference to the the remote object  Registryfor
 the local host on the default registry port of 1099. | 
| static Registry | LocateRegistry. getRegistry(int port)Returns a reference to the the remote object  Registryfor
 the local host on the specifiedport. | 
| static Registry | LocateRegistry. getRegistry(String host)Returns a reference to the remote object  Registryon the
 specifiedhoston the default registry port of 1099. | 
| static Registry | LocateRegistry. getRegistry(String host,
           int port)Returns a reference to the remote object  Registryon the
 specifiedhostandport. | 
| static Registry | LocateRegistry. getRegistry(String host,
           int port,
           RMIClientSocketFactory csf)Returns a locally created remote reference to the remote object
  Registryon the specifiedhostandport. | 
| Registry | RegistryHandler. registryImpl(int port)Deprecated. 
 no replacement.  As of the Java 2 platform v1.2, RMI no
 longer uses the  RegistryHandlerto obtain the registry's
 implementation. | 
| Registry | RegistryHandler. registryStub(String host,
            int port)Deprecated. 
 no replacement.  As of the Java 2 platform v1.2, RMI no
 longer uses the  RegistryHandlerto obtain the registry's
 stub. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2017, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.