Class ServerConfiguration
- java.lang.Object
-
- org.apache.sling.maven.slingstart.run.ServerConfiguration
-
- All Implemented Interfaces:
Serializable
public class ServerConfiguration extends Object implements Serializable
A server configuration- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ServerConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServerConfigurationcopy()StringgetContextPath()StringgetControlPort()FilegetFolder()StringgetId()Get the instance idintgetInstances()StringgetOpts()StringgetPort()StringgetRunmode()StringgetServer()Get the serverStringgetStdOutFile()StringgetVmDebugOpts(String globalDebug)Returns the debugging options derived from the passed globalDebug parameter and the debug field (where the globalDebug parameter has precedence over the local field)StringgetVmOpts()voidsetContextPath(String contextPath)voidsetControlPort(String controlPort)voidsetDebug(String debug)voidsetFolder(File folder)voidsetId(String id)Set the instance idvoidsetInstances(int value)voidsetOpts(String opts)voidsetPort(String port)voidsetRunmode(String runmode)voidsetStdOutFile(String stdOutFile)voidsetVmOpts(String vmOpts)StringtoString()
-
-
-
Method Detail
-
getId
public String getId()
Get the instance id- Returns:
- The instance id
-
setId
public void setId(String id)
Set the instance id- Parameters:
id- New instance id
-
getRunmode
public String getRunmode()
-
setRunmode
public void setRunmode(String runmode)
-
getPort
public String getPort()
-
setPort
public void setPort(String port)
-
getContextPath
public String getContextPath()
-
setContextPath
public void setContextPath(String contextPath)
-
getVmOpts
public String getVmOpts()
-
setVmOpts
public void setVmOpts(String vmOpts)
-
getVmDebugOpts
public String getVmDebugOpts(String globalDebug)
Returns the debugging options derived from the passed globalDebug parameter and the debug field (where the globalDebug parameter has precedence over the local field)- Parameters:
globalDebug- the global debug options (may benull).- Returns:
- the debugging options to use or
null. Should be appended to the ones being returned bygetVmOpts(). - See Also:
- JPDA Sun VM Invocation Options
-
setDebug
public void setDebug(String debug)
-
getOpts
public String getOpts()
-
setOpts
public void setOpts(String opts)
-
getInstances
public int getInstances()
-
setInstances
public void setInstances(int value)
-
getFolder
public File getFolder()
-
setFolder
public void setFolder(File folder)
-
getControlPort
public String getControlPort()
-
setControlPort
public void setControlPort(String controlPort)
-
getStdOutFile
public String getStdOutFile()
-
setStdOutFile
public void setStdOutFile(String stdOutFile)
-
getServer
public String getServer()
Get the server- Returns:
- The server
-
copy
public ServerConfiguration copy()
-
-