|
libintrovirt v0.57.4
IntroVirt introspection library
|
Abstract class for managing a hypervisor. More...
#include <Hypervisor.hh>
Public Member Functions | |
| virtual std::unique_ptr< Domain > | attach_domain (uint32_t domain_id)=0 |
| Attach to a Domain based on numeric identifier. | |
| virtual std::unique_ptr< Domain > | attach_domain (const std::string &domain_name)=0 |
| Attach to a Domain based on name. | |
| virtual std::vector< DomainInformation > | get_running_domains ()=0 |
| Get information about the running domains. | |
| virtual std::string | hypervisor_name () const =0 |
| Gets the name of the hypervisor. | |
| virtual std::string | hypervisor_version () const =0 |
| Gets the version of the hypervisor as a string. | |
| virtual std::string | hypervisor_patch_version () const =0 |
| Gets the version of the hypervisor's IntroVirt patch as a string. | |
| virtual std::string | library_name () const =0 |
| Gets the name of the library used for interacting with the hypervisor. | |
| virtual std::string | library_version () const =0 |
| Gets the version of the hypervisor library as a string. | |
| virtual | ~Hypervisor () |
| Destroy the instance. | |
Static Public Member Functions | |
| static std::unique_ptr< Hypervisor > | instance () |
| Get an instance of the hypervisor. | |
Protected Member Functions | |
| Hypervisor () | |
| Construct a new Hypervisor object. | |
Abstract class for managing a hypervisor.
|
virtual |
Destroy the instance.
|
protected |
Construct a new Hypervisor object.
|
pure virtual |
Attach to a Domain based on name.
| domain_name | The name of the domain |
| DomainBusyException | If the domain is already attached to by an IntroVirt process |
| NoSuchDomainException | If the domain could not be found using the given domain_id |
|
pure virtual |
Attach to a Domain based on numeric identifier.
| domain_id | The numeric identifier for the domain |
| DomainBusyException | If the domain is already attached to by an IntroVirt process |
| NoSuchDomainException | If the domain could not be found using the given domain_id |
|
pure virtual |
Get information about the running domains.
|
pure virtual |
Gets the name of the hypervisor.
|
pure virtual |
Gets the version of the hypervisor's IntroVirt patch as a string.
|
pure virtual |
Gets the version of the hypervisor as a string.
|
static |
Get an instance of the hypervisor.
This will try to find the correct hypervisor (KVM/Xen)
| UnsupportedHypervisorException | If no hypervisor could be attached to |
|
pure virtual |
Gets the name of the library used for interacting with the hypervisor.
|
pure virtual |
Gets the version of the hypervisor library as a string.