org.objectweb.jeremie.services.registry
Class LocateRegistry
public class LocateRegistry
Provides an interface for applications to obtain a bootstrap local stub
for a Jeremie registry running on a given host and port.
If not specified, the host defaults to the local machine.
If not specified, the port defaults to the value defined under the name
"/jeremie/registry/default_port" in the
bootstrap configuration
. If this name is
not bound in the bootstrap configuration, the port used is 12340.
java.rmi.registry.Registry
static Registry | createRegistry(int port) - Creates and exports a Jeremie registry on the local host on the
specified
port .
|
static Registry | getRegistry() - Creates a bootstrap local stub for a Jeremie registry running on the local
machine and using the default port.
|
static Registry | getRegistry(String host) - Creates a bootstrap local stub for a Jeremie registry running on the
specified host and using the default port.
|
static Registry | getRegistry(String host, int port) - Creates a bootstrap local stub for a Jeremie registry running on the
specified
host and using the specified port .
|
static Registry | getRegistry(int port) - Creates a bootstrap local stub for a Jeremie registry running on the local
machine and using the specified
port .
|
createRegistry
public static Registry createRegistry(int port)
throws RemoteException
Creates and exports a Jeremie registry on the local host on the
specified
port
.
- a handle on the local Registry
getRegistry
public static Registry getRegistry()
throws RemoteException
Creates a bootstrap local stub for a Jeremie registry running on the local
machine and using the default port.
- a stub for the Registry
getRegistry
public static Registry getRegistry(String host)
throws RemoteException
Creates a bootstrap local stub for a Jeremie registry running on the
specified host and using the default port.
- a stub for the Registry
getRegistry
public static Registry getRegistry(String host,
int port)
throws RemoteException
Creates a bootstrap local stub for a Jeremie registry running on the
specified
host
and using the specified
port
.
- a stub for the Registry
getRegistry
public static Registry getRegistry(int port)
throws RemoteException
Creates a bootstrap local stub for a Jeremie registry running on the local
machine and using the specified
port
.
- a stub for the Registry