Class StandaloneServerDelegate

  • All Implemented Interfaces:
    org.eclipse.wst.server.core.model.IURLProvider

    public class StandaloneServerDelegate
    extends org.eclipse.wst.server.core.model.ServerDelegate
    implements org.eclipse.wst.server.core.model.IURLProvider
    The 1C:Enterprise Standalone server WST delegate that adds and removes infobases.
    • Constructor Detail

      • StandaloneServerDelegate

        public StandaloneServerDelegate()
    • Method Detail

      • setDefaults

        public void setDefaults​(org.eclipse.core.runtime.IProgressMonitor monitor)
        Overrides:
        setDefaults in class org.eclipse.wst.server.core.model.ServerDelegate
      • canModifyModules

        public org.eclipse.core.runtime.IStatus canModifyModules​(org.eclipse.wst.server.core.IModule[] addModules,
                                                                 org.eclipse.wst.server.core.IModule[] removeModules)
        Specified by:
        canModifyModules in class org.eclipse.wst.server.core.model.ServerDelegate
      • getChildModules

        public org.eclipse.wst.server.core.IModule[] getChildModules​(org.eclipse.wst.server.core.IModule[] modules)
        Specified by:
        getChildModules in class org.eclipse.wst.server.core.model.ServerDelegate
      • getRootModules

        public org.eclipse.wst.server.core.IModule[] getRootModules​(org.eclipse.wst.server.core.IModule module)
                                                             throws org.eclipse.core.runtime.CoreException
        Specified by:
        getRootModules in class org.eclipse.wst.server.core.model.ServerDelegate
        Throws:
        org.eclipse.core.runtime.CoreException
      • saveConfiguration

        public void saveConfiguration​(org.eclipse.core.runtime.IProgressMonitor monitor)
                               throws org.eclipse.core.runtime.CoreException
        Overrides:
        saveConfiguration in class org.eclipse.wst.server.core.model.ServerDelegate
        Throws:
        org.eclipse.core.runtime.CoreException
      • importRuntimeConfiguration

        public void importRuntimeConfiguration​(org.eclipse.wst.server.core.IRuntime runtime,
                                               org.eclipse.core.runtime.IProgressMonitor monitor)
                                        throws org.eclipse.core.runtime.CoreException
        Overrides:
        importRuntimeConfiguration in class org.eclipse.wst.server.core.model.ServerDelegate
        Throws:
        org.eclipse.core.runtime.CoreException
      • getServerPorts

        public org.eclipse.wst.server.core.ServerPort[] getServerPorts()
        Overrides:
        getServerPorts in class org.eclipse.wst.server.core.model.ServerDelegate
      • modifyModules

        public void modifyModules​(org.eclipse.wst.server.core.IModule[] addModules,
                                  org.eclipse.wst.server.core.IModule[] removeModules,
                                  org.eclipse.core.runtime.IProgressMonitor monitor)
                           throws org.eclipse.core.runtime.CoreException
        Specified by:
        modifyModules in class org.eclipse.wst.server.core.model.ServerDelegate
        Throws:
        org.eclipse.core.runtime.CoreException
      • getModuleRootURL

        public URL getModuleRootURL​(org.eclipse.wst.server.core.IModule module)
        Specified by:
        getModuleRootURL in interface org.eclipse.wst.server.core.model.IURLProvider
      • getServerPort

        public int getServerPort()
        Returns the server port to start on.
        Returns:
        the server port to start on
      • setServerPort

        public void setServerPort​(int port)
        Sets the server port to start on.
      • getDebugPort

        public int getDebugPort()
        Returns the debug server port.
        Returns:
        the debug server port
      • getServerUrl

        public String getServerUrl()
        Returns the server base URL.
        Returns:
        the server base URL, never null
      • getConfigLocation

        public Path getConfigLocation()
        Returns the server config location.
        Returns:
        the server config location, never null
      • getServerPulicationUri

        public URI getServerPulicationUri​(Publication publication)
        Returns the server provided publication URL.
        Parameters:
        publication - the publication, cannot be null
        Returns:
        the server provided publication URL, never null
      • createInfobaseWorkingCopy

        public void createInfobaseWorkingCopy​(org.eclipse.wst.server.core.IModule module)
        Creates the infobase working copy
        Parameters:
        module - the module to create copy, cannot be null
      • getSystemFile

        public String getSystemFile()
        Returns the server system file.
        Returns:
        the server system file, never null
      • setSystemFile

        public void setSystemFile​(String systemFile)
        Sets the server system file.
        Parameters:
        systemFile - the server system file to set, cannot be null
      • getLockFile

        public String getLockFile()
        Returns the server lock file.
        Returns:
        the server lock file, never null
      • setLockFile

        public void setLockFile​(String lockFile)
        Sets the server lock file.
        Parameters:
        lockFile - the server lock file to set, cannot be null
      • getSystemMode

        public boolean getSystemMode()
        Returns the server system mode.
        Returns:
        the server system mode
      • setSystemMode

        public void setSystemMode​(boolean systemMode)
        Set the server system mode.
        Parameters:
        systemMode - the server system mode
      • getTempDir

        public String getTempDir()
        Returns the server temp directory
        Returns:
        the server temp directory, never null
      • setTempDir

        public void setTempDir​(String tempDir)
        Sets the server temp directory.
        Parameters:
        the - server temp directory to set, cannot be null