Resources
Object Hierarchy:
Description:
[
CCode ( type_id =
"osinfo_resources_get_type ()" ) ]
public class Resources :
Entity
Content:
Properties:
- public string architecture { get; construct; }
The target hardware architecture to which these resources applies.
- public int64 cpu { get; set; }
The CPU frequency in hertz (Hz).
- public int n_cpus { get; set; }
The number of CPUs.
- public int64 ram { get; set; }
The amount of Random Access Memory (RAM) in bytes.
- public int64 storage { get; set; }
The amount of storage space in bytes.
Creation methods:
Methods:
- public unowned string get_architecture ()
Retrieves the target hardware architecture to which
this applies.
- public int64 get_cpu ()
Retrieves the CPU frequency in hertz (Hz).
- public int get_n_cpus ()
Retrieves the number of CPUs.
- public int64 get_ram ()
Retrieves the amount of Random Access Memory (RAM) in bytes.
- public int64 get_storage ()
Retrieves the amount of storage space in bytes.
- public void set_cpu (int64 cpu)
Sets the CPU frequency.
- public void set_n_cpus (int n_cpus)
Sets the number of CPUs.
- public void set_ram (int64 ram)
Sets the amount of RAM in bytes.
- public void set_storage (int64 storage)
Sets the amount of storage space.
Inherited Members:
All known members inherited from class Osinfo.Entity
All known members inherited from class GLib.Object