public class VMData extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
SSH_MAX_PORT |
static int |
SSH_MIN_PORT |
static Pattern |
VM_NAME_PATTERN |
static String |
VM_NAME_REGEX |
| Constructor and Description |
|---|
VMData() |
| Modifier and Type | Method and Description |
|---|---|
DiskImage |
getDiskImage() |
String |
getDomainCreateXML(BootMode bootMode) |
File |
getInitRD() |
File |
getInstallationISO() |
URI |
getInstallInitrdURI() |
URI |
getInstallIsoURI() |
URI |
getInstallKernelURI() |
File |
getKernel() |
String |
getName() |
int |
getNvcpus() |
OS |
getOs() |
List<PathMapping> |
getPathMappings() |
int |
getRamMB() |
protected List<Map<String,Object>> |
getSharedFolders() |
net.schmizz.sshj.SSHClient |
getSSHClient() |
int |
getSshForwardPort() |
net.schmizz.sshj.connection.channel.direct.Session |
getSSHSession() |
File |
getWorkDir() |
Map<String,Object> |
getXmlTplData() |
boolean |
isAutoDestroy() |
void |
setAutoDestroy(boolean autoDestroy) |
void |
setDiskImage(DiskImage diskImage) |
void |
setName(String name) |
void |
setNvcpus(int nvcpus) |
void |
setOs(OS os) |
void |
setRamMB(int ramMB) |
void |
setSshForwardPort(int sshForwardPort) |
void |
setWorkDir(File workDir) |
public static final int SSH_MIN_PORT
public static final int SSH_MAX_PORT
public static final String VM_NAME_REGEX
public static final Pattern VM_NAME_PATTERN
public String getDomainCreateXML(BootMode bootMode) throws IOException, freemarker.template.TemplateException
IOExceptionfreemarker.template.TemplateExceptionpublic File getKernel()
public File getInitRD()
public File getInstallationISO()
public boolean isAutoDestroy()
public void setAutoDestroy(boolean autoDestroy)
autoDestroy - the autoDestroy to setpublic File getWorkDir()
public void setWorkDir(File workDir)
workDir - the workDir to setpublic OS getOs()
public void setOs(OS os)
os - the os to setpublic String getName()
public void setName(String name)
name - the name to setpublic int getRamMB()
public void setRamMB(int ramMB)
ramMB - the ramMB to setpublic DiskImage getDiskImage()
public void setDiskImage(DiskImage diskImage)
diskImage - the diskImage to setpublic List<PathMapping> getPathMappings()
public int getNvcpus()
public void setNvcpus(int nvcpus)
nvcpus - the nvcpus to setpublic int getSshForwardPort()
public void setSshForwardPort(int sshForwardPort)
sshForwardPort - the sshForwardPort to setpublic URI getInstallKernelURI() throws URISyntaxException
URISyntaxExceptionpublic URI getInstallInitrdURI() throws URISyntaxException
URISyntaxExceptionpublic URI getInstallIsoURI() throws URISyntaxException
URISyntaxExceptionpublic net.schmizz.sshj.SSHClient getSSHClient()
public net.schmizz.sshj.connection.channel.direct.Session getSSHSession()
Copyright © 2016 Github jjYBdx4IL Projects. All rights reserved.