Package org.libvirt
Class DomainSnapshot
- java.lang.Object
-
- org.libvirt.DomainSnapshot
-
public class DomainSnapshot extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDomainSnapshot.SnapshotDeleteFlags
-
Constructor Summary
Constructors Constructor Description DomainSnapshot(Connect virConnect, DomainSnapshotPointer vdsp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdelete(int flags)Delete the Snapshotprotected voidfinalize()intfree()Release the domain snapshot handle.java.lang.StringgetXMLDesc()Fetches an XML document describing attributes of the snapshot.
-
-
-
Constructor Detail
-
DomainSnapshot
public DomainSnapshot(Connect virConnect, DomainSnapshotPointer vdsp)
-
-
Method Detail
-
delete
public int delete(int flags) throws LibvirtExceptionDelete the Snapshot- Parameters:
flags- seeDomainSnapshot.SnapshotDeleteFlagscontrols the deletion- Returns:
- ignore (always 0)
- Throws:
LibvirtException- See Also:
- Libvirt Documentation
-
finalize
protected void finalize() throws LibvirtException- Overrides:
finalizein classjava.lang.Object- Throws:
LibvirtException
-
free
public int free() throws LibvirtExceptionRelease the domain snapshot handle. The underlying snapshot continues to exist.- Returns:
- 0 on success
- Throws:
LibvirtException
-
getXMLDesc
public java.lang.String getXMLDesc() throws LibvirtExceptionFetches an XML document describing attributes of the snapshot.- Returns:
- the XML document
- Throws:
LibvirtException- See Also:
- Libvirt Documentation
-
-