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.
Note that a getRegistry call does not actually make a
connection to the remote host. It simply creates a local reference to
the remote registry and will succeed even if no registry is running on
the remote host. Therefore, a subsequent method invocation to a remote
registry returned as a result of this method may fail.
java.rmi.registry.Registry
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Registry | Returns: the registrythe port on which the registry accepts requests port)Creates and exports a |
| public static Registry | Returns: the registryport on which the registry accepts requests port, RMIClientSocketFactory client-side csf, RMIServerSocketFactory Socket factory used to
make connections to the registryserver-side ssf)ServerSocket factory
used to accept connections to the registryCreates and exports a |
| public static Registry | Returns: reference (a stub) to the remote object registryReturns a reference to the remote object |
| public static Registry | Returns: reference (a stub) to the remote object registryport on which the registry accepts requests port)Returns a reference to the remote object |
| public static Registry | Returns: reference (a stub) to the remote object registryhost for the remote registry host)Returns a reference to the remote object |
| public static Registry | Returns: reference (a stub) to the remote object registryhost for the remote registry host, int port on which the registry accepts requests port)Returns a reference to the remote object |
| public static Registry | Returns: reference (a stub) to the remote registryhost for the remote registry host, int port on which the registry accepts requests port, RMIClientSocketFactory client-side csf)Socket factory used to
make connections to the registry. If csf
is null, then the default client-side Socket
factory will be used in the registry stub.Returns a locally created remote reference to the remote object
|
| LocateRegistry | back to summary |
|---|---|
| private LocateRegistry() Private constructor to disable public construction. | |
| createRegistry | back to summary |
|---|---|
| public static Registry createRegistry(int port) throws RemoteException Creates and exports a The
| |
| createRegistry | back to summary |
|---|---|
| public static Registry createRegistry(int port, RMIClientSocketFactory csf, RMIServerSocketFactory ssf) throws RemoteException Creates and exports a The
| |
| getRegistry | back to summary |
|---|---|
| public static Registry getRegistry() throws RemoteException Returns a reference to the remote object
| |
| getRegistry | back to summary |
|---|---|
| public static Registry getRegistry(int port) throws RemoteException Returns a reference to the remote object
| |
| getRegistry | back to summary |
|---|---|
| public static Registry getRegistry(String host) throws RemoteException Returns a reference to the remote object
| |
| getRegistry | back to summary |
|---|---|
| public static Registry getRegistry(String host, int port) throws RemoteException Returns a reference to the remote object
| |
| getRegistry | back to summary |
|---|---|
| public static Registry getRegistry(String host, int port, RMIClientSocketFactory csf) throws RemoteException Returns a locally created remote reference to the remote object
| |