Package com.mchange.rmi
Class RegistryManager
- java.lang.Object
-
- com.mchange.rmi.RegistryManager
-
public class RegistryManager extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description RegistryManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
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
-
-