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 class
DomainSnapshot.SnapshotDeleteFlags
-
Constructor Summary
Constructors Constructor Description DomainSnapshot(Connect virConnect, DomainSnapshotPointer vdsp)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
delete(int flags)
Delete the Snapshotprotected void
finalize()
int
free()
Release the domain snapshot handle.java.lang.String
getXMLDesc()
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 LibvirtException
Delete the Snapshot- Parameters:
flags
- seeDomainSnapshot.SnapshotDeleteFlags
controls the deletion- Returns:
- ignore (always 0)
- Throws:
LibvirtException
- See Also:
- Libvirt Documentation
-
finalize
protected void finalize() throws LibvirtException
- Overrides:
finalize
in classjava.lang.Object
- Throws:
LibvirtException
-
free
public int free() throws LibvirtException
Release the domain snapshot handle. The underlying snapshot continues to exist.- Returns:
- 0 on success
- Throws:
LibvirtException
-
getXMLDesc
public java.lang.String getXMLDesc() throws LibvirtException
Fetches an XML document describing attributes of the snapshot.- Returns:
- the XML document
- Throws:
LibvirtException
- See Also:
- Libvirt Documentation
-
-