Class RegistryManager


  • public class RegistryManager
    extends java.lang.Object
    • 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