RTI Connext Modern C++ API  Version 7.0.0

Utilities to print discovery snapshots of DDS entities. More...

Functions

void rti::util::discovery::take_snapshot (dds::domain::DomainParticipant participant)
 <<extension>> Take a snapshot of the remote participants discovered by a local one. More...
 
void rti::util::discovery::take_snapshot (dds::domain::DomainParticipant participant, const std::string &file_name)
 <<extension>> Take a snapshot of the remote participants discovered by a local one. More...
 
void rti::util::discovery::take_snapshot (dds::pub::AnyDataWriter writer)
 <<extension>> Take a snapshot of the compatible and incompatible remote readers matched by a local writer. More...
 
void rti::util::discovery::take_snapshot (dds::pub::AnyDataWriter writer, const std::string &file_name)
 <<extension>> Take a snapshot of the compatible and incompatible remote readers matched by a local writer. More...
 
void rti::util::discovery::take_snapshot (dds::sub::AnyDataReader reader)
 <<extension>> Take a snapshot of the compatible and incompatible remote writers matched by a local reader. More...
 
void rti::util::discovery::take_snapshot (dds::sub::AnyDataReader reader, const std::string &file_name)
 <<extension>> Take a snapshot of the compatible and incompatible remote writers matched by a local reader. More...
 

Detailed Description

Utilities to print discovery snapshots of DDS entities.

Function Documentation

◆ take_snapshot() [1/6]

void rti::util::discovery::take_snapshot ( dds::domain::DomainParticipant  participant)

<<extension>> Take a snapshot of the remote participants discovered by a local one.

Note
This is a standalone function in the namespace rti::util::discovery
Parameters
participantThe local participant.

The snapshot will be printed through the rti::config::Logger. A possible output may be the following:

Remote participants that match the local participant domain=0
name="participantTestName" role="participantTestRole" id="1"
guid_prefix="0x0101D8D1,0x20B83C0D,0x4495246E"
----------------------------------------------------------------------------
1. 0x0101542A,0x2C59B595,0xA1693BDF name="participantTestName"
role="participantTestRole"
unicastLocators="udpv4://192.168.1.170:7411"
----------------------------------------------------------------------------
Exceptions
Oneof the Standard Exceptions.

◆ take_snapshot() [2/6]

void rti::util::discovery::take_snapshot ( dds::domain::DomainParticipant  participant,
const std::string &  file_name 
)

<<extension>> Take a snapshot of the remote participants discovered by a local one.

Note
This is a standalone function in the namespace rti::util::discovery
Parameters
participantThe local participant.
file_nameName of the file where snapshot should be printed.

The snapshot will be printed in the file specified by file_name. A possible output may be the following:

Remote participants that match the local participant domain=0
name="participantTestName" role="participantTestRole" id="1"
guid_prefix="0x0101D8D1,0x20B83C0D,0x4495246E"
----------------------------------------------------------------------------
1. 0x0101542A,0x2C59B595,0xA1693BDF name="participantTestName"
role="participantTestRole"
unicastLocators="udpv4://192.168.1.170:7411"
----------------------------------------------------------------------------
Exceptions
Oneof the Standard Exceptions.

◆ take_snapshot() [3/6]

void rti::util::discovery::take_snapshot ( dds::pub::AnyDataWriter  writer)

<<extension>> Take a snapshot of the compatible and incompatible remote readers matched by a local writer.

Note
This is a standalone function in the namespace rti::util::discovery
Parameters
writerThe local writer.

The snapshot will be printed through the rti::config::Logger. A possible output may be the following:

Remote readers that match the local writer domain=0 name="writerTestName"
guid="0x0101D8D1,0x20B83C0D,0x4495246E:0x80000003"
topic="FooTopic" type="FooType"
----------------------------------------------------------------------------
Compatible readers:
1. 0x0101542A,0x2C59B595,0xA1693BDF:0x80000004 name="reader1TestName"
kind="unkeyed user datareader"
unicastLocators="udpv4://192.168.1.170:7411"
liveliness="ALIVE"
Incompatible readers:
1. 0x0101542A,0x2C59B595,0xA1693BDF:0x80000104 name="reader2TestName"
kind="unkeyed user datareader"
unicastLocators="udpv4://192.168.1.170:7411"
reason="Inconsistent QoS"
----------------------------------------------------------------------------
Exceptions
Oneof the Standard Exceptions.

◆ take_snapshot() [4/6]

void rti::util::discovery::take_snapshot ( dds::pub::AnyDataWriter  writer,
const std::string &  file_name 
)

<<extension>> Take a snapshot of the compatible and incompatible remote readers matched by a local writer.

Note
This is a standalone function in the namespace rti::util::discovery
Parameters
writerThe local writer.
file_nameName of the file where snapshot should be printed.

The snapshot will be printed in the file specified by file_name. A possible output may be the following:

Remote readers that match the local writer domain=0 name="writerTestName"
guid="0x0101D8D1,0x20B83C0D,0x4495246E:0x80000003"
topic="FooTopic" type="FooType"
----------------------------------------------------------------------------
Compatible readers:
1. 0x0101542A,0x2C59B595,0xA1693BDF:0x80000004 name="reader1TestName"
kind="unkeyed user datareader"
unicastLocators="udpv4://192.168.1.170:7411"
liveliness="ALIVE"
Incompatible readers:
1. 0x0101542A,0x2C59B595,0xA1693BDF:0x80000104 name="reader2TestName"
kind="unkeyed user datareader"
unicastLocators="udpv4://192.168.1.170:7411"
reason="Inconsistent QoS"
----------------------------------------------------------------------------
Exceptions
Oneof the Standard Exceptions.

◆ take_snapshot() [5/6]

void rti::util::discovery::take_snapshot ( dds::sub::AnyDataReader  reader)

<<extension>> Take a snapshot of the compatible and incompatible remote writers matched by a local reader.

Note
This is a standalone function in the namespace rti::util::discovery
Parameters
readerLocal reader.

The snapshot will be printed through the rti::config::Logger. A possible output may be the following:

Remote writers that match the local reader domain=0 name="readerTestName"
guid="0x0101542A,0x2C59B595,0xA1693BDF:0x80000004"
topic="FooTopic" type="FooType"
----------------------------------------------------------------------------
Compatible writers:
1. 0x0101D8D1,0x20B83C0D,0x4495246E:0x80000003 name="writer1TestName"
kind="unkeyed user datareader"
unicastLocators="udpv4://192.168.1.170:7411"
liveliness="ALIVE"
Incompatible writers:
1. 0x0101D8D1,0x20B83C0D,0x4495246E:0x80000103 name="writer2TestName"
kind="unkeyed user datareader"
unicastLocators="udpv4://192.168.1.170:7411"
reason="Inconsistent QoS"
----------------------------------------------------------------------------
Exceptions
Oneof the Standard Exceptions.

◆ take_snapshot() [6/6]

void rti::util::discovery::take_snapshot ( dds::sub::AnyDataReader  reader,
const std::string &  file_name 
)

<<extension>> Take a snapshot of the compatible and incompatible remote writers matched by a local reader.

Note
This is a standalone function in the namespace rti::util::discovery
Parameters
readerLocal reader.
file_nameName of the file where snapshot should be printed.

The snapshot will be printed in the file specified by file_name. A possible output may be the following:

Remote writers that match the local reader domain=0 name="readerTestName"
guid="0x0101542A,0x2C59B595,0xA1693BDF:0x80000004"
topic="FooTopic" type="FooType"
----------------------------------------------------------------------------
Compatible writers:
1. 0x0101D8D1,0x20B83C0D,0x4495246E:0x80000003 name="writer1TestName"
kind="unkeyed user datareader"
unicastLocators="udpv4://192.168.1.170:7411"
liveliness="ALIVE"
Incompatible writers:
1. 0x0101D8D1,0x20B83C0D,0x4495246E:0x80000103 name="writer2TestName"
kind="unkeyed user datareader"
unicastLocators="udpv4://192.168.1.170:7411"
reason="Inconsistent QoS"
----------------------------------------------------------------------------
Exceptions
Oneof the Standard Exceptions.