Class StandaloneServerGenerator


  • public final class StandaloneServerGenerator
    extends Object
    Generator helps to create default 1C:Enterprise Standalone server config and infobase.
    • Constructor Detail

      • StandaloneServerGenerator

        public StandaloneServerGenerator()
    • Method Detail

      • generateDebugPort

        public int generateDebugPort​(org.eclipse.core.runtime.IProgressMonitor monitor)
        Generates default 1C:Enterprise standalone server deubug port.
        Parameters:
        monitor - the progress montior to report progress or null if not needed
        Returns:
        generated 1C:Enterprise standalone server deubug port
      • generateDefaultConfig

        public Config generateDefaultConfig​(IStandaloneServerRuntime runtime,
                                            org.eclipse.wst.server.core.IServer server,
                                            org.eclipse.core.runtime.IProgressMonitor monitor)
        Generates default 1C:Enterprise standalone server config.
        Parameters:
        runtime - the server runtime to use, cannot be null
        server - the server to generate default config for, cannot be null
        monitor - the progress montior to report progress or null if not needed
        Returns:
        generated config, never null
      • generateInfobaseName

        public String generateInfobaseName​(String originalName)
        Generates the infobase name.
        Parameters:
        originalName - the original base name to use, cannot be null
        Returns:
        the generated name, cannot be null
      • getDefaultServerSshPrivateKeyLocation

        public static Path getDefaultServerSshPrivateKeyLocation​(Path serverConfiguration)
        Returns default SSH private key location for the specified server config path.
        Parameters:
        serverConfiguration - server directory to return SSH private key location for, cannot be null
        Returns:
        SSH private key location for the specified server, never null