|
RTC Toolkit 5.1.0
|
Telemetry Republisher business logic. More...
#include <telRepubBusinessLogic.hpp>
Public Types | |
| using | ComponentType = LifeCycle |
Public Member Functions | |
| TelRepubBusinessLogic (std::string name, ServiceContainer &service, RepubWranglerFactory &&factory=[](auto x) { return nullptr;}) | |
| virtual | ~TelRepubBusinessLogic () |
| void | ActivityStarting (StopToken st) override |
| void | ActionClearAlerts () override |
| void | ActivityRecovering (StopToken st) override |
| void | ActivityInitialising (StopToken st) override |
| void | ActivityEnabling (StopToken st) override |
| void | ActivityDisabling (StopToken st) override |
| void | ActivityGoingRunning (StopToken st) override |
| void | ActivityGoingIdle (StopToken st) override |
| void | ActivityRunning (StopToken st) override |
| void | ActivityUpdating (StopToken st, const JsonPayload &args) override |
| bool | GuardUpdatingAllowed (const JsonPayload &args) override |
Protected Member Functions | |
| void | ReadGlobalCfg () |
| Reads Global configuration. | |
| void | CreateMudpiReceivers () |
| Creates MUDPI receivers (rtctk::telRepub::UdpReceiver) incl corresponding Publisher threads, reading configuration from the Runtime Configuration Repository. | |
| void | DeleteMudpiReceivers () |
| Deletes UDPI receivers (rtctk::telRepub::UdpReceiver). | |
| PubThreadMudpi & | CreatePubThread (const std::string &dds_topic_path_static) |
| Creates Publisher Thread (rtctk::telRepub::PubThread), reading configuration from the Runtime Configuration Repository. | |
| void | CreateSimPubThreads () |
| Creates all Simulated Publisher Threads (rtctk::telRepub::PubThread), reading configuration from the Runtime Configuration Repository. | |
| void | DeletePubThreads () |
| Deletes all (incl. | |
| void | CreateDdsPubs () |
| Creates DDS publishers (rtctk::componentFramework::DdsPub), reading configuration from the Runtime Configuration Repository. | |
| void | DeleteDdsPubs () |
| Deletes DDS publishers (rtctk::componentFramework::DdsPub). | |
| void | Monitor () |
| Monitoring alerts etc that is executed in a loop. | |
Protected Attributes | |
| log4cplus::Logger & | m_logger |
| Logger object reference of this class. | |
| const std::string | m_name |
| Component name. | |
| std::unique_ptr< DdsPub > | m_dds_pub |
| rtctk::componentFramework::ServiceContainer & | m_service |
| Reference to container service. | |
| componentFramework::RuntimeRepoIf & | m_rtr |
| Reference to run-time repository needed to access the configuration. | |
| componentFramework::ComponentMetricsIf & | m_metrics |
| references to component metrices service | |
| AlertServiceIf & | m_alerts |
| references to component alert service | |
| std::vector< std::unique_ptr< UdpReceiver > > | m_udp_receivers |
| vector of UDP receivers | |
| std::vector< std::unique_ptr< PubThread > > | m_pub_threads |
| DDS publishers. | |
| RepubWranglerFactory | m_wrangler_factory |
| Factory for wrangler functions, depending on the topic id. | |
| std::chrono::milliseconds | m_monitor_report_interval_ms = std::chrono::milliseconds(1000) |
| Monitoring report interval in msecs. | |
| std::optional< numapp::NumaPolicies > | monitoring_thread_policies = std::nullopt |
| Monitoring thread policies. | |
Telemetry Republisher business logic.
| rtctk::telRepub::TelRepubBusinessLogic::TelRepubBusinessLogic | ( | std::string | name, |
| ServiceContainer & | service, | ||
| RepubWranglerFactory && | factory = [](auto x) { return nullptr; } ) |
|
virtual |
|
override |
Reimplemented from rtctk::componentFramework::Runnable< Super >::BizLogicIf.
Reimplemented from rtctk::componentFramework::Runnable< Super >::BizLogicIf.
Reimplemented from rtctk::componentFramework::Runnable< Super >::BizLogicIf.
Reimplemented from rtctk::componentFramework::Runnable< Super >::BizLogicIf.
|
override |
|
protected |
Creates DDS publishers (rtctk::componentFramework::DdsPub), reading configuration from the Runtime Configuration Repository.
|
protected |
Creates MUDPI receivers (rtctk::telRepub::UdpReceiver) incl corresponding Publisher threads, reading configuration from the Runtime Configuration Repository.
|
protected |
Creates Publisher Thread (rtctk::telRepub::PubThread), reading configuration from the Runtime Configuration Repository.
| dds_topic_path_static | path to dds_topic/<topic-name> static cfg |
|
protected |
Creates all Simulated Publisher Threads (rtctk::telRepub::PubThread), reading configuration from the Runtime Configuration Repository.
|
protected |
Deletes DDS publishers (rtctk::componentFramework::DdsPub).
|
protected |
Deletes UDPI receivers (rtctk::telRepub::UdpReceiver).
|
protected |
Deletes all (incl.
Sim) Pub Threads.
|
override |
|
protected |
Monitoring alerts etc that is executed in a loop.
|
protected |
Reads Global configuration.
|
protected |
references to component alert service
|
protected |
|
protected |
Logger object reference of this class.
|
protected |
references to component metrices service
|
protected |
Monitoring report interval in msecs.
|
protected |
Component name.
|
protected |
DDS publishers.
|
protected |
Reference to run-time repository needed to access the configuration.
|
protected |
Reference to container service.
|
protected |
vector of UDP receivers
|
protected |
Factory for wrangler functions, depending on the topic id.
|
protected |
Monitoring thread policies.