Package org.opencms.rmi
Class CmsRemoteShellServer
- java.lang.Object
-
- org.opencms.rmi.CmsRemoteShellServer
-
public class CmsRemoteShellServer extends java.lang.Object
This class is used to initialize the RMI mechanism and export the object used to access the remote shell.
-
-
Constructor Summary
Constructors Constructor Description CmsRemoteShellServer(int port)Creates a new instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CmsRemoteShellServerinitialize(CmsSystemConfiguration systemConfiguration)Initializes the remote shell server.voidinitServer()Initializes the RMI registry and exports the remote shell provider to it.voidshutDown()Unregisters remote objects.
-
-
-
Constructor Detail
-
CmsRemoteShellServer
public CmsRemoteShellServer(int port)
Creates a new instance.- Parameters:
port- the port for the RMI registry
-
-
Method Detail
-
initialize
public static CmsRemoteShellServer initialize(CmsSystemConfiguration systemConfiguration)
Initializes the remote shell server.- Parameters:
systemConfiguration- the OpenCms system configuration read from opencms-system.xml- Returns:
- the initialized remote shell server, or
nullif the server is disabled
-
initServer
public void initServer()
Initializes the RMI registry and exports the remote shell provider to it.
-
shutDown
public void shutDown() throws java.lang.Exception
Unregisters remote objects.- Throws:
java.lang.Exception- in case shutting down the RMI threads failed
-
-