org.almendra.commons.util.inet
Class RMIUtility
java.lang.Object
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Registries
protected static java.util.Map Registries
RMIUtility
public RMIUtility()
- Creates a new
RMIUtility
object.
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