Class 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 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 null if 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