Connection
Object Hierarchy:
Description:
[ CCode ( type_id = "gvir_connection_get_type ()" ) ]
public class Connection : Object
Content:
Properties:
Creation methods:
Methods:
- public void close ()
- public Domain create_domain (Domain conf) throws Error
Create the configuration file for a new persistent domain.
- public StoragePool create_storage_pool (StoragePool conf, uint flags) throws Error
- public bool fetch_domains (Cancellable? cancellable = null) throws Error
Use this method to fetch all domains managed by connection
this.
- public async bool fetch_domains_async (Cancellable? cancellable) throws Error
- public bool fetch_interfaces (Cancellable? cancellable = null) throws Error
Use this method to fetch information on all network interfaces managed
by connection this on host machine.
- public async bool fetch_interfaces_async (Cancellable? cancellable) throws Error
- public bool fetch_networks (Cancellable? cancellable = null) throws Error
Use this method to fetch all networks managed by connection
this.
- public async bool fetch_networks_async (Cancellable? cancellable) throws Error
- public bool fetch_storage_pools (Cancellable? cancellable = null) throws Error
Use this method to fetch all storage pools managed by connection
this.
- public async bool fetch_storage_pools_async (Cancellable? cancellable) throws Error
- public Domain find_domain_by_id (int id)
- public Domain find_domain_by_name (string name)
- public Interface find_interface_by_mac (string macaddr)
Get a particular interface which has MAC address mac
.
- public Network find_network_by_name (string name)
Get a particular network which has name name
.
- public StoragePool find_storage_pool_by_name (string name)
- public Capabilities get_capabilities () throws Error
- public async Capabilities get_capabilities_async (Cancellable? cancellable) throws Error
- public Domain get_domain (string uuid)
- public DomainCapabilities get_domain_capabilities (string? emulatorbin, string? arch, string? machine, string? virttype, uint flags) throws Error
- public async DomainCapabilities get_domain_capabilities_async (string? emulatorbin, string? arch, string? machine, string? virttype, uint flags, Cancellable? cancellable) throws Error
- public List<Domain> get_domains ()
Gets a list of the domains available through
this.
- public string get_hypervisor_name () throws Error
Get name of current hypervisor used.
- public Interface get_interface (string name)
Get a particular interface which has name name
.
- public List<Interface> get_interfaces ()
Get a list of all the network interfaces managed by connection
this on host machine.
- public Network get_network (string uuid)
Get a particular network which has UUID uuid
.
- public List<Network> get_networks ()
Get a list of all the network networks available through
this.
- public NodeInfo get_node_info () throws Error
- public StoragePool get_storage_pool (string uuid)
- public List<StoragePool> get_storage_pools ()
Gets a list of the storage pools available through
this.
- public Stream get_stream (uint flags)
- public unowned string get_uri ()
- public ulong get_version () throws Error
Get version of current hypervisor used.
- public bool is_open ()
- public bool is_read_only ()
- public bool open (Cancellable? cancellable = null) throws Error
- public async bool open_async (Cancellable? cancellable) throws Error
- public bool open_read_only (Cancellable? cancellable = null) throws Error
- public async bool open_read_only_async (Cancellable? cancellable) throws Error
- public bool restore_domain_from_file (string filename, Domain? custom_conf, uint flags) throws Error
- public async bool restore_domain_from_file_async (string filename, Domain? custom_conf, uint flags, Cancellable? cancellable) throws Error
- public Domain start_domain (Domain conf, uint flags) throws Error
Start a new transient domain without persistent configuration.
Signals:
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref