INprStatsSource class
Read-only observability contract consumed by NPR control adapters.
The interface lives in src/npr/control/ because it serves the management plane, not NPR protocol correctness. Implementations may adapt runtime state or provide deterministic fake snapshots for host tests.
Derived classes
- class NprRuntimeStatsSource final
- Runtime-backed implementation of the control-interface observability contract.
Constructors, destructors, conversion operators
- ~INprStatsSource() defaulted virtual
Public functions
- auto connected() const -> bool pure virtual
- Returns current link status exposed to
/interface/<iface>/status. - auto diagnostics_snapshot(NprDiagnosticsSnapshot* out) const -> bool pure virtual
- Copies flat diagnostics counters/timing ages.
- auto network_config_snapshot(NprNetworkConfig* out) const -> bool pure virtual
- Copies current role-specific network snapshot when available.
- auto who_cache_snapshot(SignalingWhoEntry* out_entries, size_t max_entries, uint64_t* out_now_us) const -> size_t pure virtual
- Copies current WHO/neighbor cache snapshot and associated runtime time base.