This interface contains information about a local or remote host. More...
Public Member Functions | |
virtual const IString * | get_address () const =0 |
Returns the address of the host described by this property instance. More... |
|
virtual Size | get_amount_of_memory () const =0 |
Returns the amount of RAM memory in MB. More... |
|
virtual Size | get_cpu_count () const =0 |
Returns the number of CPUs. More... |
|
virtual Size | get_siblings_per_cpu () const =0 |
Returns the number of virtual CPUs in a hyperthreaded CPU. More... |
|
virtual Size | get_gpu_count () const =0 |
Returns the number of GPUs. More... |
|
virtual const IString * | get_property (const char *key) const =0 |
Generic access to properties. More... |
|
virtual Uint32 | get_host_id () const =0 |
Returns the host ID of this host. More... |
|
Additional Inherited Members | |
Public Types inherited from mi::base::Interface_declare< 0xac76eb08, 0x1c7e, 0x43d7, 0x9e, 0xea, 0xec, 0x8d, 0x9a, 0x10, 0x23, 0x80 > | |
typedef Interface_declare< id1, id2, id3, id4, id5, id6, id7, id8, id9, id10, id11, IInterface > |
Self |
Own type. More... |
|
typedef Uuid_t< id1, id2, id3, id4, id5, id6, id7, id8, id9, id10, id11 > |
IID |
Declares the interface ID (IID) of this interface. More... |
|
Static Public Member Functions inherited from mi::base::Interface_declare< 0xac76eb08, 0x1c7e, 0x43d7, 0x9e, 0xea, 0xec, 0x8d, 0x9a, 0x10, 0x23, 0x80 > | |
static bool | compare_iid (const Uuid &iid) |
Compares the interface ID iid against the interface ID of this interface and of its ancestors. More... |
|
This interface contains information about a local or remote host.
|
pure virtual |
Returns the address of the host described by this property instance.
The method always returns NULL
if networking support is not available.
NULL
in case of failure.
|
pure virtual |
Returns the amount of RAM memory in MB.
|
pure virtual |
Returns the number of CPUs.
|
pure virtual |
Returns the number of GPUs.
|
pure virtual |
Returns the host ID of this host.
|
pure virtual |
Generic access to properties.
This method provides access to a string map of additional information. To access it, call it with the key for the desired value. The current list of supported keys is as follows:
"admin_http_server_address"
"host_name"
"memory_size"
"cpu_count"
"siblings_per_cpu"
"gpu_count"
"maximum_allocated_memory"
(*) "currently_allocated_memory"
(*) "cuda_device_count"
"uptime"
"rtmp_port"
(*) (*) These properties are only supported for the local host, not for remote hosts.
The method always returns NULL
if networking support is not available.
key | The key for the property wished for |
NULL
in case of failure.
|
pure virtual |
Returns the number of virtual CPUs in a hyperthreaded CPU.