Package org.libvirt
Class DomainCheckpoint
java.lang.Object
org.libvirt.DomainCheckpoint
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Constructor Summary
ConstructorsConstructorDescriptionDomainCheckpoint(Connect virConnect, DomainCheckpointPointer vdcp) Constructs a DomainCheckpoint object from a known native DomainCheckpointPointer, and a Connect object. -
Method Summary
Modifier and TypeMethodDescriptionintdelete(int flags) Delete the domain checkpointprotected voidfinalize()intfree()Frees this domaincheckpoint object.getName()Get the public name for that checkpointGet the parent checkpoint for checkpoint, if any.getParent(int flags) Get the parent checkpoint for checkpoint, if any.Fetches an XML document describing attributes of the domain checkpoint, without security-sensitive data.getXMLDesc(int flags) Fetches an XML document describing attributes of the domain checkpoint.listAllChildren(int flags) Array of domain checkpoints children for the given domain checkpoint.
-
Constructor Details
-
DomainCheckpoint
Constructs a DomainCheckpoint object from a known native DomainCheckpointPointer, and a Connect object.- Parameters:
virConnect- the Domain's hypervisorvdcp- the native virDomainCheckpointPtr
-
-
Method Details
-
delete
Delete the domain checkpoint- Parameters:
flags- seeDomainCheckpoint.CheckpointDeleteFlagscontrols the deletion- Returns:
- ignore (always 0)
- Throws:
LibvirtException- See Also:
-
finalize
- Overrides:
finalizein classObject- Throws:
LibvirtException
-
free
Frees this domaincheckpoint object. The running instance is kept alive. The data structure is freed and should not be used thereafter.- Returns:
- number of references left (>= 0)
- Throws:
LibvirtException
-
getXMLDesc
Fetches an XML document describing attributes of the domain checkpoint, without security-sensitive data.- Returns:
- the XML document
- Throws:
LibvirtException- See Also:
-
getXMLDesc
Fetches an XML document describing attributes of the domain checkpoint.- Parameters:
flags- seeDomainCheckpoint.XMLFlagscontrols the information- Returns:
- the XML document
- Throws:
LibvirtException- See Also:
-
getName
Get the public name for that checkpoint- Returns:
- the name, null if there is no name
- Throws:
LibvirtException
-
listAllChildren
Array of domain checkpoints children for the given domain checkpoint.- Parameters:
flags- flags for list the checkpoints, see theDomain.CheckpointListFlagsfor the flag options- Returns:
- Array with children checkpoints of the given domain checkpoint
- Throws:
LibvirtException- See Also:
-
getParent
Get the parent checkpoint for checkpoint, if any.- Parameters:
flags- extra flags- Returns:
- a domain checkpoint or null if the given domain checkpoint is root
- Throws:
LibvirtException- See Also:
-
getParent
Get the parent checkpoint for checkpoint, if any. This is just a convenience method, it has the same effect as callinggetParent(0);.- Returns:
- a domain checkpoint or null if the given domain checkpoint is root
- Throws:
LibvirtException- See Also:
-