org.almendra.commons.util.inet
Class RMIUtility

java.lang.Object
  extended by org.almendra.commons.util.inet.RMIUtility

public class RMIUtility
extends java.lang.Object

Author:
Oliver

Field Summary
protected static java.util.Map Registries
           
 
Constructor Summary
RMIUtility()
          Creates a new RMIUtility object.
 
Method Summary
protected static void checkAlive(java.rmi.registry.Registry registry)
           
static java.rmi.registry.Registry createRegistry(int port)
           
static java.rmi.registry.Registry ensureRegistryExists(RegistryLocation location)
           
static java.rmi.registry.Registry getRegistry()
           
static java.rmi.registry.Registry getRegistry(RegistryLocation location)
           
static java.rmi.registry.Registry getRegistry(java.lang.String hostName, int port)
           
static void printListToConsole()
           
static void printListToConsole(int port)
           
static void printListToConsole(java.lang.String hostName, int port)
           
static StringVector unbind(RegistryLocation registryLocation, java.lang.String[] registryKeyPrefixes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Registries

protected static java.util.Map Registries
Constructor Detail

RMIUtility

public RMIUtility()
Creates a new RMIUtility object.

Method Detail

getRegistry

public static java.rmi.registry.Registry getRegistry()
                                              throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

getRegistry

public static java.rmi.registry.Registry getRegistry(java.lang.String hostName,
                                                     int port)
                                              throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

createRegistry

public static java.rmi.registry.Registry createRegistry(int port)
                                                 throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

checkAlive

protected static void checkAlive(java.rmi.registry.Registry registry)
                          throws java.rmi.AccessException,
                                 java.rmi.RemoteException
Parameters:
registry -
Throws:
java.rmi.AccessException
java.rmi.RemoteException

printListToConsole

public static void printListToConsole(java.lang.String hostName,
                                      int port)

printListToConsole

public static void printListToConsole()

printListToConsole

public static void printListToConsole(int port)

getRegistry

public static java.rmi.registry.Registry getRegistry(RegistryLocation location)
                                              throws java.rmi.RemoteException
Parameters:
location -
Returns:
Throws:
java.rmi.RemoteException

ensureRegistryExists

public static java.rmi.registry.Registry ensureRegistryExists(RegistryLocation location)
                                                       throws java.rmi.RemoteException
Throws:
java.rmi.RemoteException

unbind

public static StringVector unbind(RegistryLocation registryLocation,
                                  java.lang.String[] registryKeyPrefixes)
                           throws java.rmi.AccessException,
                                  java.rmi.RemoteException,
                                  java.rmi.NotBoundException
Throws:
java.rmi.AccessException
java.rmi.RemoteException
java.rmi.NotBoundException