Package org.libvirt
Class DomainSnapshot
java.lang.Object
org.libvirt.DomainSnapshot
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdelete(int flags) Delete the Snapshotprotected voidfinalize()intfree()Release the domain snapshot handle.Fetches an XML document describing attributes of the snapshot, without security-sensitive data.getXMLDesc(int flags) Fetches an XML document describing attributes of the snapshot.
-
Constructor Details
-
DomainSnapshot
-
-
Method Details
-
delete
Delete the Snapshot- Parameters:
flags- seeDomainSnapshot.SnapshotDeleteFlagscontrols the deletion- Returns:
- ignore (always 0)
- Throws:
LibvirtException- See Also:
-
finalize
- Overrides:
finalizein classObject- Throws:
LibvirtException
-
free
Release the domain snapshot handle. The underlying snapshot continues to exist.- Returns:
- 0 on success
- Throws:
LibvirtException
-
getXMLDesc
Fetches an XML document describing attributes of the snapshot, without security-sensitive data.- Returns:
- the XML document
- Throws:
LibvirtException- See Also:
-
getXMLDesc
Fetches an XML document describing attributes of the snapshot.- Parameters:
flags- bitwise-OR ofDomainSnapshot.XMLFlags- Returns:
- the XML document
- Throws:
LibvirtException- See Also:
-