Package org.opencms.rmi
Class CmsRemoteShellServer
java.lang.Object
org.opencms.rmi.CmsRemoteShellServer
This class is used to initialize the RMI mechanism and export the object used to access the remote shell.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CmsRemoteShellServer
initialize
(CmsSystemConfiguration systemConfiguration) Initializes the remote shell server.void
Initializes the RMI registry and exports the remote shell provider to it.void
shutDown()
Unregisters remote objects.
-
Constructor Details
-
CmsRemoteShellServer
Creates a new instance.- Parameters:
port
- the port for the RMI registry
-
-
Method Details
-
initialize
Initializes the remote shell server.- Parameters:
systemConfiguration
- the OpenCms system configuration read from opencms-system.xml- Returns:
- the initialized remote shell server, or
null
if the server is disabled
-
initServer
Initializes the RMI registry and exports the remote shell provider to it. -
shutDown
Unregisters remote objects.- Throws:
Exception
- in case shutting down the RMI threads failed
-