MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / configure_stats_period

Method configure_stats_period

tools/rtpsrelay/RelayStatisticsReporter.cpp:39–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39void RelayStatisticsReporter::configure_stats_period(const OpenDDS::DCPS::TimeDuration& log,
40 const OpenDDS::DCPS::TimeDuration& publish) const
41{
42 if (log || publish) {
43 TheServiceParticipant->statistics_period(log && publish ? std::min(log, publish) : (log ? log : publish));
44 TheServiceParticipant->statistics_topic()->connect(internal_reader_);
45 } else {
46 TheServiceParticipant->statistics_period(OpenDDS::DCPS::TimeDuration{});
47 TheServiceParticipant->statistics_topic()->disconnect(internal_reader_);
48 }
49}
50
51void RelayStatisticsReporter::on_data_available(InternalDataReader_rch reader)
52{

Callers

nothing calls this directly

Calls 3

statistics_periodMethod · 0.80
connectMethod · 0.45
disconnectMethod · 0.45

Tested by

no test coverage detected