com.mchange.rmi
Class RegistryManager

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

public class RegistryManager
extends Object


Constructor Summary
RegistryManager()
           
 
Method Summary
static Registry ensureRegistry()
           
static Registry ensureRegistry(int port)
           
static Registry findRegistry()
           
static 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 Registry ensureRegistry(int port)
                               throws RemoteException
Throws:
RemoteException

ensureRegistry

public static Registry ensureRegistry()
                               throws RemoteException
Throws:
RemoteException

registryAvailable

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

registryAvailable

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

findRegistry

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

findRegistry

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