API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.rmi.registry. LocateRegistry View Source
Author(s)
Ann Wollrath
Peter Jones
Since
JDK1.1
Version
1.34, 11/17/05
Serial
Hierarchy
 Object
      LocateRegistry
Implements
Subclasses
Description
publicfinal class LocateRegistry
  LocateRegistry is used to obtain a reference to a bootstrap remote object registry on a particular host (including the local host), or to create a remote object registry that accepts calls on a specific port.
See also:    Registry
Constructors
private LocateRegistry ()
Private constructor to disable public construction.
Methods
Hide/Show inherited methods
publicstatic Registry createRegistry (int port) throws RemoteException
  Creates and exports a Registry instance on the local host that accepts requests on the specified port.
publicstatic Registry createRegistry (int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf) throws RemoteException
  Creates and exports a Registry instance on the local host that uses custom socket factories for communication with that instance.
publicstatic Registry getRegistry () throws RemoteException
  Returns a reference to the the remote object Registry for the local host on the default registry port of 1099.
publicstatic Registry getRegistry (int port) throws RemoteException
  Returns a reference to the the remote object Registry for the local host on the specified port.
publicstatic Registry getRegistry (String host) throws RemoteException
  Returns a reference to the remote object Registry on the specified host on the default registry port of 1099.
publicstatic Registry getRegistry (String host, int port) throws RemoteException
  Returns a reference to the remote object Registry on the specified host and port.
publicstatic Registry getRegistry (String host, int port, RMIClientSocketFactory csf) throws RemoteException
  Returns a locally created remote reference to the remote object Registry on the specified host and port.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar