1.2. Stop and restart a monitor¶


Restarting a stopped monitor is currently not supported. It will be implemented on a future release of Fast DDS Statistics Backend.

Fast DDS Statistics Backend allows for a monitorization to be stopped and restarted at any time. Stopping a monitorization merely means that the internal statistics DataReaders are disabled, but the already received data is still accessible to applications through the query API (see Get statistical data). Is is important to note that:

// Init a monitor in DDS domain 0 with no listener associated
EntityId domain_monitor_id = StatisticsBackend::init_monitor(0);
// Stop the monitor
// Restart the monitor