|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.virtualization.libvirt.jna.LibVirtObject
org.glassfish.virtualization.libvirt.jna.Domain
public class Domain
Virtual Machine (Domain) interface
| Field Summary |
|---|
| Fields inherited from class org.glassfish.virtualization.libvirt.jna.LibVirtObject |
|---|
libvirt |
| Constructor Summary | |
|---|---|
Domain(DomainPointer handle)
|
|
| Method Summary | |
|---|---|
int |
create()
Launches this defined domain. |
void |
destroy()
Destroys this domain object. |
int |
getID()
Gets the hypervisor ID number for the domain |
DomainInfo |
getInfo()
Returns the domain information object |
String |
getName()
Gets the public name for this domain |
String |
getOSType()
Gets the type of domain operation system. |
void |
reboot(int flags)
Reboot this domain, the domain object is still usable there after but the domain OS is being stopped for a restart. |
void |
resume()
Resume this suspended domain, the process is restarted from the state where it was frozen by calling virSuspendDomain(). |
void |
suspend()
Suspends this active domain, the process is frozen without further access to CPU resources and I/O but the memory used by the domain at the hypervisor level will stay allocated. |
void |
undefine()
undefines this domain but does not stop it if it is running |
| Methods inherited from class org.glassfish.virtualization.libvirt.jna.LibVirtObject |
|---|
checkForError |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Domain(DomainPointer handle)
| Method Detail |
|---|
public String getName()
throws VirtException
VirtException - if an error occurs
public String getOSType()
throws VirtException
VirtException - if an error occurs
public int getID()
throws VirtException
VirtException - if an error occurs
public int create()
throws VirtException
VirtException - if an error occurs.
public void destroy()
throws VirtException
VirtException - if an error occurs
public void suspend()
throws VirtException
VirtException - if a error occurs
public void undefine()
throws VirtException
VirtException - if an error occurs
public void reboot(int flags)
throws VirtException
flags - extra flags for the reboot operation, not used yet
VirtException - if an error occurs
public void resume()
throws VirtException
VirtException - if an error occurs
public DomainInfo getInfo()
throws VirtException
VirtException - if an error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||