Class StandaloneServerDelegate
- java.lang.Object
-
- org.eclipse.wst.server.core.model.ServerDelegate
-
- com.e1c.g5.v8.dt.platform.standaloneserver.wst.core.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.
-
-
Field Summary
Fields Modifier and Type Field Description static String
ATTR_PORT_SERVER
static String
ID
-
Constructor Summary
Constructors Constructor Description StandaloneServerDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.core.runtime.IStatus
canModifyModules(org.eclipse.wst.server.core.IModule[] addModules, org.eclipse.wst.server.core.IModule[] removeModules)
void
createInfobaseWorkingCopy(org.eclipse.wst.server.core.IModule module)
Creates the infobase working copyorg.eclipse.wst.server.core.IModule[]
getChildModules(org.eclipse.wst.server.core.IModule[] modules)
Path
getConfigLocation()
Returns the server config location.int
getDebugPort()
Returns the debug server port.String
getLockFile()
Returns the server lock file.URL
getModuleRootURL(org.eclipse.wst.server.core.IModule module)
org.eclipse.wst.server.core.IModule[]
getRootModules(org.eclipse.wst.server.core.IModule module)
int
getServerPort()
Returns the server port to start on.org.eclipse.wst.server.core.ServerPort[]
getServerPorts()
URI
getServerPulicationUri(Publication publication)
Returns the server provided publication URL.String
getServerUrl()
Returns the server base URL.String
getSystemFile()
Returns the server system file.boolean
getSystemMode()
Returns the server system mode.String
getTempDir()
Returns the server temp directoryStandaloneServerInfobaseWorkingCopy
getWorkingCopy()
Returns the infobase working copy.void
importRuntimeConfiguration(org.eclipse.wst.server.core.IRuntime runtime, org.eclipse.core.runtime.IProgressMonitor monitor)
void
modifyModules(org.eclipse.wst.server.core.IModule[] addModules, org.eclipse.wst.server.core.IModule[] removeModules, org.eclipse.core.runtime.IProgressMonitor monitor)
void
saveConfiguration(org.eclipse.core.runtime.IProgressMonitor monitor)
void
setDefaults(org.eclipse.core.runtime.IProgressMonitor monitor)
void
setLockFile(String lockFile)
Sets the server lock file.void
setServerPort(int port)
Sets the server port to start on.void
setSystemFile(String systemFile)
Sets the server system file.void
setSystemMode(boolean systemMode)
Set the server system mode.void
setTempDir(String tempDir)
Sets the server temp directory.void
setWorkingCopy(StandaloneServerInfobaseWorkingCopy copy)
Sets the infobase working copy.-
Methods inherited from class org.eclipse.wst.server.core.model.ServerDelegate
configurationChanged, dispose, getAttribute, getAttribute, getAttribute, getAttribute, getAttribute, getServer, getServerWorkingCopy, importConfiguration, initialize, isUseProjectSpecificSchedulingRuleOnPublish, newServerDetailsChanged, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute
-
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
ATTR_PORT_SERVER
public static final String ATTR_PORT_SERVER
- See Also:
- Constant Field Values
-
-
Method Detail
-
setDefaults
public void setDefaults(org.eclipse.core.runtime.IProgressMonitor monitor)
- Overrides:
setDefaults
in classorg.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 classorg.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 classorg.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 classorg.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 classorg.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 classorg.eclipse.wst.server.core.model.ServerDelegate
- Throws:
org.eclipse.core.runtime.CoreException
-
getServerPorts
public org.eclipse.wst.server.core.ServerPort[] getServerPorts()
- Overrides:
getServerPorts
in classorg.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 classorg.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 interfaceorg.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 benull
- 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 benull
-
setWorkingCopy
public void setWorkingCopy(StandaloneServerInfobaseWorkingCopy copy)
Sets the infobase working copy.- Parameters:
copy
- the copy to set, cannot benull
-
getWorkingCopy
public StandaloneServerInfobaseWorkingCopy getWorkingCopy()
Returns the infobase working copy.- Returns:
- the infobase working copy or
null
if none
-
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 benull
-
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 benull
-
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 benull
-
-