Feature #1869

Updated by S. Wrede over 9 years ago

We need to consider a solution for getting the low-level or OS-specific platform properties required for introspection. Ideally, we should add a simple interface for getting this information as it will be platform-specific in any case:

h2. ProcessInfo

* PID
* Program name (On POSIX systems, argv[0])
* Command line arguments (On POSIX systems, does not include argv[0], i.e. argv[1:])
* Start time of the process encoded as a timestamp in UTC in microseconds since UNIX epoch.

h2. HostInfo

* HostID
* Hostname

Linux strategy for HostID:
<pre>
* * contents of /etc/machine-id (excluding whitespace characters)
* * contents of /var/lib/dbus/machine-id (excluding whitespace
* characters)
* * Return value of POSIX gethostid function in hexadecimal base
* * Hostname
</pre>

@ProcessInfo@ and @HostInfo@ should be realized as singletons as the information should only be collected once during factory initialization. The singleton may also instantiate the platform-specific implementation classes of these interfaces.

Back