InventoryFeature
The node's inventory as a feature (work-placement §WPK-3, §WPN-9).
| Inherits | nodekit::NodeFeature |
In the namespace nodekit. Declared in src/libs/libnodekit/nodekit/features/InventoryFeature.hpp.
Detailed description
Holds the one `InventoryService` of the app. Needs nothing.
- **Access**: the facility `inventory`. The Monitor screen takes its samples from it, so the node runs one sampler thread, not two (§WPI-10). `BatchFeature` wants this feature and gives the service to the batch queue. - **Lifecycle**: the service starts at install and stops at uninstall. It is not a `Service` on a level: it measures the machine, which every level needs. - **graphicsApis**: at install, the feature asks the RHI which device each graphics API lists (`rhi::listGraphicsDevices`) and gives the list to the service, which puts the APIs on the GPUs its probe found (§WPN-9a). A process with no GUI lists nothing, and the APIs stay unknown. - **Proof**: testNodeKit.
At install, the feature reads the app's base folder (the artifact folder is under it, so it is the disk to describe and measure) and keeps the measurement in the app's settings, under `inventory/measurements`.