Class DefaultRMIRegistryService

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()
      Destroy method to be called to free up resources (shutting down underlying Registry).
      java.lang.String getLoopback()  
      java.net.InetAddress getLoopbackAddress()
      The local (loopback) address to use for communication.
      int getPort()
      The local port of the exposed Registry.
      java.rmi.registry.Registry getRegistry()
      The actual Registry.
      void init()
      Init method to be called after instantiation to pull up the Registry implementation.
      void setLoopback​(java.lang.String loopback)
      Sets the loopback address to use, i.e.
      void setPort​(int port)
      Sets the port to use, i.e.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultRMIRegistryService

        public DefaultRMIRegistryService()
    • Method Detail

      • setPort

        public void setPort​(int port)
        Sets the port to use, i.e. the port the rmi registry listens to for external registration and lookups.

        In the default spring setup this property can be adjusted by the "os.rmiregistry.port" system property on startup.

        Parameters:
        port - the port number, e.g 4321
      • getLoopback

        public java.lang.String getLoopback()
      • setLoopback

        public void setLoopback​(java.lang.String loopback)
        Sets the loopback address to use, i.e. the network address the rmi registry accepts connections from.

        If the loopback address is set to null, the JVM will automatically pick the local loopback address.

        Parameters:
        loopback - local loopback address (e.g. '127.0.0.1')
      • init

        public void init()
        Init method to be called after instantiation to pull up the Registry implementation.
      • destroy

        public void destroy()
        Destroy method to be called to free up resources (shutting down underlying Registry).
      • getLoopbackAddress

        public java.net.InetAddress getLoopbackAddress()
        Description copied from interface: RMIRegistryService
        The local (loopback) address to use for communication.
        Specified by:
        getLoopbackAddress in interface RMIRegistryService
        Returns:
        the Loopback address