Class StandaloneServerGenerator
- java.lang.Object
-
- com.e1c.g5.v8.dt.platform.standaloneserver.wst.core.StandaloneServerGenerator
-
public final class StandaloneServerGenerator extends Object
Generator helps to create default 1C:Enterprise Standalone server config and infobase.
-
-
Constructor Summary
Constructors Constructor Description StandaloneServerGenerator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
generateDebugPort(org.eclipse.core.runtime.IProgressMonitor monitor)
Generates default 1C:Enterprise standalone server deubug port.Config
generateDefaultConfig(IStandaloneServerRuntime runtime, org.eclipse.wst.server.core.IServer server, org.eclipse.core.runtime.IProgressMonitor monitor)
Generates default 1C:Enterprise standalone server config.String
generateInfobaseName(String originalName)
Generates the infobase name.static Path
getDefaultServerSshPrivateKeyLocation(Path serverConfiguration)
Returns default SSH private key location for the specified server config path.
-
-
-
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 ornull
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 benull
server
- the server to generate default config for, cannot benull
monitor
- the progress montior to report progress ornull
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 benull
- 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 benull
- Returns:
- SSH private key location for the specified server, never
null
-
-