Class DefaultRMIRegistryService

java.lang.Object
de.hybris.platform.mediaconversion.os.process.impl.DefaultRMIRegistryService
All Implemented Interfaces:
RMIRegistryService

public class DefaultRMIRegistryService extends Object implements RMIRegistryService
Default RMIRegistryService hooking in to the spring lifecycle.
  • Constructor Details

    • DefaultRMIRegistryService

      public DefaultRMIRegistryService()
  • Method Details

    • getPort

      public int getPort()
      The local port of the exposed Registry.
      Specified by:
      getPort in interface RMIRegistryService
      Returns:
      the local port to use.
      See Also:
    • 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 String getLoopback()
    • setLoopback

      public void setLoopback(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')
    • getRegistry

      public Registry getRegistry()
      The actual Registry.
      Specified by:
      getRegistry in interface RMIRegistryService
      Returns:
      the rmi Registry
      See Also:
    • 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 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