Domain
Object Hierarchy:
Description:
[
CCode ( type_id =
"gvir_domain_get_type ()" ) ]
public class Domain :
Object
Content:
Properties:
Creation methods:
Methods:
- public bool @delete (uint flags) throws Error
- public DomainSnapshot create_snapshot (DomainSnapshot? custom_conf, uint flags) throws Error
- public async DomainSnapshot create_snapshot_async (DomainSnapshot? custom_conf, uint flags, Cancellable? cancellable) throws Error
- public bool fetch_snapshots (uint list_flags, Cancellable? cancellable = null) throws Error
- public async bool fetch_snapshots_async (uint list_flags, Cancellable? cancellable) throws Error
- public Domain get_config (uint flags) throws Error
- public List<DomainDevice> get_devices () throws Error
Gets the list of devices attached to this
.
- public bool get_has_current_snapshot (uint flags, out bool has_current_snapshot) throws Error
- public int get_id () throws Error
- public DomainInfo get_info () throws Error
- public async DomainInfo get_info_async (Cancellable? cancellable) throws Error
- public unowned string get_name ()
- public bool get_persistent ()
- public bool get_saved ()
- public List<DomainSnapshot> get_snapshots ()
- public unowned string get_uuid ()
- public bool open_console (Stream stream, string? devname, uint flags) throws Error
Open a text console for the domain this
, connecting it to the stream stream.
- public bool open_graphics (uint idx, int fd, uint flags) throws Error
Open a connection to the local graphics display, connecting it to the
socket pair file descriptor passed in as fd.
- public int open_graphics_fd (uint idx, uint flags) throws Error
This will create a socket pair connected to the graphics backend of
this.
- public bool reboot (uint flags) throws Error
- public bool resume () throws Error
- public async bool resume_async (Cancellable? cancellable) throws Error
Asynchronous variant of
resume.
- public bool save (uint flags) throws Error
Saves the state of the domain on disk and stops it.
- public async bool save_async (uint flags, Cancellable? cancellable) throws Error
Asynchronous variant of
save.
- public bool save_to_file (string filename, Domain? custom_conf, uint flags) throws Error
- public async bool save_to_file_async (string filename, Domain? custom_conf, uint flags, Cancellable? cancellable) throws Error
- public string screenshot (Stream stream, uint monitor_id, uint flags) throws Error
- public bool set_config (Domain conf) throws Error
Resets configuration of an existing domain.
- public bool set_time (DateTime? date_time, uint flags) throws Error
This function tries to set guest time to the given value.
- public async bool set_time_async (DateTime? date_time, uint flags, Cancellable? cancellable) throws Error
- public bool shutdown (uint flags) throws Error
- public bool start (uint flags) throws Error
- public async bool start_async (uint flags, Cancellable? cancellable) throws Error
Asynchronous variant of
start.
- public bool stop (uint flags) throws Error
- public bool suspend () throws Error
Suspends an active domain, the process is frozen without further
access to CPU resources and I/O but the memory used by the domain at the hypervisor level will stay allocated.
- public bool update_device (DomainDevice device, uint flags) throws Error
Update the configuration of a device.
- public bool wakeup (uint flags) throws Error
- public async bool wakeup_async (uint flags, Cancellable? cancellable) throws Error
Asynchronous variant of
wakeup.
Signals:
Inherited Members:
All known members inherited from class GLib.Object