Class Lxc
- java.lang.Object
-
- de.iip_ecosphere.platform.ecsRuntime.EcsSetup.AbstractManagerSetup
-
- de.iip_ecosphere.platform.ecsRuntime.lxc.Lxc
-
public class Lxc extends de.iip_ecosphere.platform.ecsRuntime.EcsSetup.AbstractManagerSetupImplements the LXC specific configuration.- Author:
- Luca Schulz, SSE
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringdownloadDirectoryprivate java.lang.StringlxcHostprivate java.lang.StringlxcImageYamlFilenameprivate java.lang.StringlxcPort
-
Constructor Summary
Constructors Constructor Description Lxc()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDownloadDirectory()Returns the download directory.java.lang.StringgetLxcHost()Returns the LXC host.java.lang.StringgetLxcImageYamlFilename()Returns the name of the Yaml file with information about the LXC Image.java.lang.StringgetLxcPort()Returns the LXC port.voidsetDownloadDirectory(java.lang.String directory)Defines the download directory.voidsetLxcHost(java.lang.String lxcHost)Defines the LXC host.voidsetLxcImageYamlFilename(java.lang.String filename)Defines the standard name of the Yaml file with a information about the LXC Image.voidsetLxcPort(java.lang.String lxcPort)Defines the LXC port.
-
-
-
Method Detail
-
getLxcPort
public java.lang.String getLxcPort()
Returns the LXC port.- Returns:
- the LXC port as LXC port string, e.g., port
-
setLxcPort
public void setLxcPort(java.lang.String lxcPort)
Defines the LXC port.- Parameters:
lxcPort- the port lxc is listening on
-
getLxcHost
public java.lang.String getLxcHost()
Returns the LXC host.- Returns:
- the LXChost as LXC host string, e.g., localhost
-
setLxcHost
public void setLxcHost(java.lang.String lxcHost)
Defines the LXC host.- Parameters:
lxcHost- the LXC host as LXC host string, e.g., localhost
-
getLxcImageYamlFilename
public java.lang.String getLxcImageYamlFilename()
Returns the name of the Yaml file with information about the LXC Image.- Returns:
- lxcImageYamlFilename of the Yaml file
-
setLxcImageYamlFilename
public void setLxcImageYamlFilename(java.lang.String filename)
Defines the standard name of the Yaml file with a information about the LXC Image.- Parameters:
filename- the name of the Yaml file
-
setDownloadDirectory
public void setDownloadDirectory(java.lang.String directory)
Defines the download directory.- Parameters:
directory- the directory
-
getDownloadDirectory
public java.lang.String getDownloadDirectory()
Returns the download directory. If the configured download directory is null or empty, it returns the system temporary directory.- Returns:
- downloadDirectory, the system temporary directory if none is specified
-
-