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.


Constructor Index

 o NinjaLocateRegistry()

Method Index

 o getRegistry(int)
Obtains a handle to the registry at the local host with the given port.
 o getRegistry(String)
Obtains a handle to the registry at the given hostname with the default port (Registry.REGISTRY_PORT).
 o getRegistry(String, int)
Obtains a handle to the registry at the given hostname and port number.

Constructors

 o NinjaLocateRegistry
 public NinjaLocateRegistry()

Methods

 o 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.

 o 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).

 o 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