ninja.rmi.registry
Class NinjaLocateRegistry

java.lang.Object
  |
  +--ninja.rmi.registry.NinjaLocateRegistry

public class NinjaLocateRegistry
extends java.lang.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 Summary
NinjaLocateRegistry()
           
 
Method Summary
static java.rmi.registry.Registry getRegistry(int port)
          Obtains a handle to the registry at the local host with the given port.
static java.rmi.registry.Registry getRegistry(java.lang.String hostname)
          Obtains a handle to the registry at the given hostname with the default port (Registry.REGISTRY_PORT).
static java.rmi.registry.Registry getRegistry(java.lang.String hostname, int port)
          Obtains a handle to the registry at the given hostname and port number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NinjaLocateRegistry

public NinjaLocateRegistry()
Method Detail

getRegistry

public static java.rmi.registry.Registry getRegistry(int port)
                                              throws java.lang.ClassNotFoundException,
                                                     java.lang.IllegalAccessException,
                                                     java.lang.InstantiationException,
                                                     java.lang.reflect.InvocationTargetException
Obtains a handle to the registry at the local host with the given port.

getRegistry

public static java.rmi.registry.Registry getRegistry(java.lang.String hostname)
                                              throws java.lang.ClassNotFoundException,
                                                     java.lang.IllegalAccessException,
                                                     java.lang.InstantiationException,
                                                     java.lang.reflect.InvocationTargetException
Obtains a handle to the registry at the given hostname with the default port (Registry.REGISTRY_PORT).

getRegistry

public static java.rmi.registry.Registry getRegistry(java.lang.String hostname,
                                                     int port)
                                              throws java.lang.ClassNotFoundException,
                                                     java.lang.IllegalAccessException,
                                                     java.lang.InstantiationException,
                                                     java.lang.reflect.InvocationTargetException
Obtains a handle to the registry at the given hostname and port number.