Class DefaultRMIRegistryService
- java.lang.Object
-
- de.hybris.platform.mediaconversion.os.process.impl.DefaultRMIRegistryService
-
- All Implemented Interfaces:
RMIRegistryService
public class DefaultRMIRegistryService extends java.lang.Object implements RMIRegistryService
DefaultRMIRegistryServicehooking in to the spring lifecycle.
-
-
Constructor Summary
Constructors Constructor Description DefaultRMIRegistryService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()Destroy method to be called to free up resources (shutting down underlyingRegistry).java.lang.StringgetLoopback()java.net.InetAddressgetLoopbackAddress()The local (loopback) address to use for communication.intgetPort()The local port of the exposedRegistry.java.rmi.registry.RegistrygetRegistry()The actualRegistry.voidinit()Init method to be called after instantiation to pull up theRegistryimplementation.voidsetLoopback(java.lang.String loopback)Sets the loopback address to use, i.e.voidsetPort(int port)Sets the port to use, i.e.
-
-
-
Method Detail
-
getPort
public int getPort()
The local port of the exposedRegistry.- Specified by:
getPortin interfaceRMIRegistryService- Returns:
- the local port to use.
- See Also:
RMIRegistryService.getPort()
-
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')
-
getRegistry
public java.rmi.registry.Registry getRegistry()
The actualRegistry.- Specified by:
getRegistryin interfaceRMIRegistryService- Returns:
- the rmi
Registry - See Also:
RMIRegistryService.getRegistry()
-
init
public void init()
Init method to be called after instantiation to pull up theRegistryimplementation.
-
destroy
public void destroy()
Destroy method to be called to free up resources (shutting down underlyingRegistry).
-
getLoopbackAddress
public java.net.InetAddress getLoopbackAddress()
Description copied from interface:RMIRegistryServiceThe local (loopback) address to use for communication.- Specified by:
getLoopbackAddressin interfaceRMIRegistryService- Returns:
- the Loopback address
-
-