com.mchange.rmi
Class RegistryManager

java.lang.Object
  extended by com.mchange.rmi.RegistryManager

public class RegistryManager
extends java.lang.Object


Constructor Summary
RegistryManager()
           
 
Method Summary
static java.rmi.registry.Registry ensureRegistry()
           
static java.rmi.registry.Registry ensureRegistry(int port)
           
static java.rmi.registry.Registry findRegistry()
           
static java.rmi.registry.Registry findRegistry(int port)
           
static boolean registryAvailable()
           
static boolean registryAvailable(int port)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegistryManager

public RegistryManager()
Method Detail

ensureRegistry

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

ensureRegistry

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

registryAvailable

public static boolean registryAvailable(int port)
                                 throws java.rmi.RemoteException,
                                        java.rmi.AccessException
Throws:
java.rmi.RemoteException
java.rmi.AccessException

registryAvailable

public static boolean registryAvailable()
                                 throws java.rmi.RemoteException,
                                        java.rmi.AccessException
Throws:
java.rmi.RemoteException
java.rmi.AccessException

findRegistry

public static java.rmi.registry.Registry findRegistry(int port)
                                               throws java.rmi.RemoteException,
                                                      java.rmi.AccessException
Returns:
the Registry on localhost at port, if one is exported; null otherwise.
Throws:
java.rmi.RemoteException
java.rmi.AccessException

findRegistry

public static java.rmi.registry.Registry findRegistry()
                                               throws java.rmi.RemoteException,
                                                      java.rmi.AccessException
Returns:
the Registry on localhost at the default registry port, if one is exported; null otherwise.
Throws:
java.rmi.RemoteException
java.rmi.AccessException