public class VMInstanceProvider extends Object implements AutoCloseable
| Constructor and Description |
|---|
VMInstanceProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
VMData |
createVM(OS os)
Prepare a running VM in a defined, clean state.
|
VMData |
createVM(OS os,
String vmName)
Prepare a running VM in a defined, clean state.
|
public VMInstanceProvider()
throws org.libvirt.LibvirtException
org.libvirt.LibvirtExceptionpublic void close()
throws VMMgmtException
close in interface AutoCloseableVMMgmtExceptionpublic VMData createVM(OS os) throws VMMgmtException
os - VMMgmtExceptionpublic VMData createVM(OS os, String vmName) throws VMMgmtException
os - vmName - identifies the VM instance. There cannot be two VMs running with the same name in the
same domain at one time.VMMgmtExceptionCopyright © 2016 Github jjYBdx4IL Projects. All rights reserved.