10.1.2. Statistics Domain Participant

In order to start collecting data in one of the statistics topics (Statistics Topic names), the corresponding statistics DataWriter should be enabled. In fact, Fast DDS Statistics module can be enabled and disabled at runtime. For this purpose, Fast DDS Statistics module exposes an extended DDS DomainParticipant API:

10.1.2.1. Enable statistics DataWriters

Warning

This method will be implemented in future releases. For the moment it always returns RETCODE_UNSUPPORTED.

Statistics DataWriters are enabled using the method enable_statistics_datawriter(). This method requires as parameters:

10.1.2.2. Disable statistics DataWriters

Warning

This method will be implemented in future releases. For the moment it always returns RETCODE_UNSUPPORTED.

Statistics DataWriters are disabled using the method disable_statistics_datawriter(). This method requires as parameter:

10.1.2.3. Obtain pointer to the extended DomainParticipant class

Warning

This method will be implemented in future releases. For the moment it always returns nullptr.

The DomainParticipant is created using the create_participant() provided by the DomainParticipantFactory. This method returns a pointer to the DDS standard DomainParticipant created. In order to obtain the pointer to the child DomainParticipant which extends the DDS API, the static method narrow() is provided.