org.libvirt
Class DomainSnapshot

java.lang.Object
  extended by org.libvirt.DomainSnapshot

public class DomainSnapshot
extends java.lang.Object


Field Summary
protected  Libvirt libvirt
          The libvirt connection from the hypervisor
 
Constructor Summary
DomainSnapshot(Connect virConnect, DomainSnapshotPointer VDSP)
           
 
Method Summary
 int delete(int flags)
          Delete the Snapshot
 void finalize()
           
 int free()
          Release the domain snapshot handle.
 java.lang.String getXMLDesc()
          Fetches an XML document describing attributes of the snapshot.
protected  void processError()
          Error handling logic to throw errors.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)
           throws LibvirtException
Delete the Snapshot

Parameters:
flags - controls teh deletion
Returns:
Throws:
LibvirtException
See Also:
Libvirt Documentation

finalize

public void finalize()
              throws LibvirtException
Overrides:
finalize in class java.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, or -1 on error.
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

processError

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

Throws:
LibvirtException