Class DefaultRMIRegistryService
java.lang.Object
de.hybris.platform.mediaconversion.os.process.impl.DefaultRMIRegistryService
- All Implemented Interfaces:
RMIRegistryService
Default
RMIRegistryService hooking in to the spring lifecycle.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Destroy method to be called to free up resources (shutting down underlyingRegistry).The local (loopback) address to use for communication.intgetPort()The local port of the exposedRegistry.The actualRegistry.voidinit()Init method to be called after instantiation to pull up theRegistryimplementation.voidsetLoopback(String loopback) Sets the loopback address to use, i.e.voidsetPort(int port) Sets the port to use, i.e.
-
Constructor Details
-
DefaultRMIRegistryService
public DefaultRMIRegistryService()
-
-
Method Details
-
getPort
public int getPort()The local port of the exposedRegistry.- Specified by:
getPortin interfaceRMIRegistryService- 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
-
setLoopback
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
The actualRegistry.- Specified by:
getRegistryin interfaceRMIRegistryService- Returns:
- the rmi
Registry - See Also:
-
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
Description copied from interface:RMIRegistryServiceThe local (loopback) address to use for communication.- Specified by:
getLoopbackAddressin interfaceRMIRegistryService- Returns:
- the Loopback address
-