All Packages Class Hierarchy This Package Previous Next Index
Class ninja.rmi.registry.NinjaLocateRegistry
java.lang.Object
|
+----ninja.rmi.registry.NinjaLocateRegistry
- public class NinjaLocateRegistry
- extends Object
NinjaLocateRegistry contains static methods used to obtain a
handle to a NinjaRegistryImpl at a given hostname and port.
Usage might be:
Registry reg = NinjaLocateRegistry.getRegistry(hostname, port);
The default port is Registry.REGISTRY_PORT.
-
NinjaLocateRegistry()
-
-
getRegistry(int)
- Obtains a handle to the registry at the local host with the given
port.
-
getRegistry(String)
- Obtains a handle to the registry at the given hostname with the
default port (Registry.REGISTRY_PORT).
-
getRegistry(String, int)
- Obtains a handle to the registry at the given hostname and port number.
NinjaLocateRegistry
public NinjaLocateRegistry()
getRegistry
public static Registry getRegistry(int port) throws ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetException
- Obtains a handle to the registry at the local host with the given
port.
getRegistry
public static Registry getRegistry(String hostname) throws ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetException
- Obtains a handle to the registry at the given hostname with the
default port (Registry.REGISTRY_PORT).
getRegistry
public static Registry getRegistry(String hostname,
int port) throws ClassNotFoundException, IllegalAccessException, InstantiationException, InvocationTargetException
- Obtains a handle to the registry at the given hostname and port number.
All Packages Class Hierarchy This Package Previous Next Index