Class CmsRemoteShellServer

java.lang.Object
org.opencms.rmi.CmsRemoteShellServer

public class CmsRemoteShellServer extends Object
This class is used to initialize the RMI mechanism and export the object used to access the remote shell.

  • Constructor Details

    • CmsRemoteShellServer

      public CmsRemoteShellServer(int port)
      Creates a new instance.

      Parameters:
      port - the port for the RMI registry
  • Method Details

    • 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 Exception
      Unregisters remote objects.

      Throws:
      Exception - in case shutting down the RMI threads failed