org.libvirt

Class DomainSnapshot

public class DomainSnapshot extends Object

Field Summary
protected Libvirtlibvirt
The libvirt connection from the hypervisor
Constructor Summary
DomainSnapshot(Connect virConnect, DomainSnapshotPointer VDSP)
Method Summary
intdelete(int flags)
Delete the Snapshot
intfree()
Release the domain snapshot handle.
StringgetXMLDesc()
Fetches an XML document describing attributes of the snapshot.
protected voidprocessError()
Error handling logic to throw errors.

Field Detail

libvirt

protected Libvirt libvirt
The libvirt connection from the hypervisor

Constructor Detail

DomainSnapshot

public DomainSnapshot(Connect virConnect, DomainSnapshotPointer VDSP)

Method Detail

delete

public int delete(int flags)
Delete the Snapshot

Parameters: flags controls teh deletion

Returns:

Throws: LibvirtException

See Also: Libvirt Documentation

free

public int free()
Release the domain snapshot handle. The underlying snapshot continues to exist.

Returns: 0 on success, or -1 on error.

Throws: LibvirtException

getXMLDesc

public String getXMLDesc()
Fetches an XML document describing attributes of the snapshot.

Returns: the XML document

See Also: Libvirt Documentation

processError

protected void processError()
Error handling logic to throw errors. Must be called after every libvirt call.