Package org.libvirt
Class DomainSnapshot
java.lang.Object
org.libvirt.DomainSnapshot
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
libvirt
The libvirt connection from the hypervisor
-
-
Constructor Details
-
DomainSnapshot
-
-
Method Details
-
delete
Delete the Snapshot- Parameters:
flags
- controls teh deletion- Returns:
- 0 if the selected snapshot(s) were successfully deleted, -1 on error.
- Throws:
LibvirtException
- See Also:
-
finalize
- Overrides:
finalize
in classObject
- Throws:
LibvirtException
-
free
Release the domain snapshot handle. The underlying snapshot continues to exist.- Returns:
- 0 on success, or -1 on error.
- Throws:
LibvirtException
-
getXMLDesc
Fetches an XML document describing attributes of the snapshot.- Returns:
- the XML document
- Throws:
LibvirtException
- See Also:
-
processError
Error handling logic to throw errors. Must be called after every libvirt call.- Throws:
LibvirtException
-