#include <rtcSupervisor.hpp>
|
| virtual std::unique_ptr< StatusEstimator > | MakeStatusEstimator () |
| | Factory method for creating custom status estimator objects.
|
| |
| std::vector< std::unique_ptr< RtcObjectIf > > | MakeRtcObjects () |
| | Constructs RtcObjects, called during Initialisation.
|
| |
| std::vector< elt::mal::Uri > | GetPubSubUris () |
| | Gets Pub/Sub URIs of superivsord compoonents.
|
| |
| void | MonitorCycle () noexcept |
| | Performs one cycle of async monitoring of the components.
|
| |
| void | OnStateEventReceived (const taiclock::TaiClock::time_point, const std::string &name, const std::string &state) noexcept |
| | Called on State Event subscription.
|
| |
| void | SetStatus (const std::string &status) |
| | Sets and publishes overall system status.
|
| |
| std::string | GetStatus () |
| | Returns the overall system status.
|
| |
| void | LoadStaticConfig () |
| | Retrievs static configuration from the Runtime Configuration Repository.
|
| |
| void | LoadDynamicConfig () |
| | Retrievs static configuration from the Runtime Configuration Repository.
|
| |
◆ ComponentType
◆ RtcSupervisor()
| rtctk::rtcSupervisor::RtcSupervisor::RtcSupervisor |
( |
const std::string & | comp_name, |
|
|
ServiceContainer & | services ) |
◆ ~RtcSupervisor()
| rtctk::rtcSupervisor::RtcSupervisor::~RtcSupervisor |
( |
| ) |
|
|
virtual |
◆ ActionClearAlerts()
| void rtctk::rtcSupervisor::RtcSupervisor::ActionClearAlerts |
( |
| ) |
|
|
override |
◆ ActionGetActiveModes()
| JsonPayload rtctk::rtcSupervisor::RtcSupervisor::ActionGetActiveModes |
( |
| ) |
|
|
override |
◆ ActionGetAvailableModes()
| JsonPayload rtctk::rtcSupervisor::RtcSupervisor::ActionGetAvailableModes |
( |
| ) |
|
|
override |
◆ ActionGetDeferredModes()
| JsonPayload rtctk::rtcSupervisor::RtcSupervisor::ActionGetDeferredModes |
( |
| ) |
|
|
override |
◆ ActionGetStatus()
| std::string rtctk::rtcSupervisor::RtcSupervisor::ActionGetStatus |
( |
| ) |
|
|
override |
◆ ActionSetDeferredModes()
| void rtctk::rtcSupervisor::RtcSupervisor::ActionSetDeferredModes |
( |
const JsonPayload & | args | ) |
|
|
override |
◆ ActivityDisabling()
| void rtctk::rtcSupervisor::RtcSupervisor::ActivityDisabling |
( |
StopToken | st | ) |
|
|
override |
◆ ActivityEnabling()
| void rtctk::rtcSupervisor::RtcSupervisor::ActivityEnabling |
( |
StopToken | st | ) |
|
|
override |
◆ ActivityInitialising()
| void rtctk::rtcSupervisor::RtcSupervisor::ActivityInitialising |
( |
StopToken | st | ) |
|
|
override |
◆ ActivityRecovering()
| void rtctk::rtcSupervisor::RtcSupervisor::ActivityRecovering |
( |
StopToken | st | ) |
|
|
override |
◆ ActivitySettingModes()
| void rtctk::rtcSupervisor::RtcSupervisor::ActivitySettingModes |
( |
StopToken | st, |
|
|
const JsonPayload & | args ) |
|
override |
◆ ActivityStarting()
| void rtctk::rtcSupervisor::RtcSupervisor::ActivityStarting |
( |
StopToken | st | ) |
|
|
override |
◆ ActivityUpdating()
| void rtctk::rtcSupervisor::RtcSupervisor::ActivityUpdating |
( |
StopToken | st, |
|
|
const JsonPayload & | args ) |
|
override |
◆ ActivityWritingBack()
| void rtctk::rtcSupervisor::RtcSupervisor::ActivityWritingBack |
( |
StopToken | st, |
|
|
const JsonPayload & | args ) |
|
override |
◆ GetPubSubUris()
| std::vector< elt::mal::Uri > rtctk::rtcSupervisor::RtcSupervisor::GetPubSubUris |
( |
| ) |
|
|
protected |
Gets Pub/Sub URIs of superivsord compoonents.
◆ GetStatus()
| std::string rtctk::rtcSupervisor::RtcSupervisor::GetStatus |
( |
| ) |
|
|
protected |
Returns the overall system status.
◆ GuardSettingModesAllowed()
| bool rtctk::rtcSupervisor::RtcSupervisor::GuardSettingModesAllowed |
( |
const JsonPayload & | args | ) |
|
|
override |
◆ GuardUpdatingAllowed()
| bool rtctk::rtcSupervisor::RtcSupervisor::GuardUpdatingAllowed |
( |
const JsonPayload & | args | ) |
|
|
override |
◆ GuardWritingBackAllowed()
| bool rtctk::rtcSupervisor::RtcSupervisor::GuardWritingBackAllowed |
( |
const JsonPayload & | args | ) |
|
|
override |
◆ LoadDynamicConfig()
| void rtctk::rtcSupervisor::RtcSupervisor::LoadDynamicConfig |
( |
| ) |
|
|
protected |
Retrievs static configuration from the Runtime Configuration Repository.
◆ LoadStaticConfig()
| void rtctk::rtcSupervisor::RtcSupervisor::LoadStaticConfig |
( |
| ) |
|
|
protected |
Retrievs static configuration from the Runtime Configuration Repository.
◆ MakeRtcObjects()
| std::vector< std::unique_ptr< RtcObjectIf > > rtctk::rtcSupervisor::RtcSupervisor::MakeRtcObjects |
( |
| ) |
|
|
protected |
Constructs RtcObjects, called during Initialisation.
◆ MakeStatusEstimator()
| std::unique_ptr< StatusEstimator > rtctk::rtcSupervisor::RtcSupervisor::MakeStatusEstimator |
( |
| ) |
|
|
protectedvirtual |
Factory method for creating custom status estimator objects.
Reimplemented in CustomRtcSupervisor.
◆ MonitorCycle()
| void rtctk::rtcSupervisor::RtcSupervisor::MonitorCycle |
( |
| ) |
|
|
protectednoexcept |
Performs one cycle of async monitoring of the components.
Perform one cycle of object monitoring.
This method is periodically called from the RtcMonitor class.
Traverse the list of objects sending a request and setting an error flag if there is an error communicating
◆ OnStateEventReceived()
| void rtctk::rtcSupervisor::RtcSupervisor::OnStateEventReceived |
( |
const taiclock::TaiClock::time_point | timestamp, |
|
|
const std::string & | name, |
|
|
const std::string & | state ) |
|
protectednoexcept |
Called on State Event subscription.
This method is offloaded to the io_context in the RtcMonitor class.
◆ SetStatus()
| void rtctk::rtcSupervisor::RtcSupervisor::SetStatus |
( |
const std::string & | status | ) |
|
|
protected |
Sets and publishes overall system status.
◆ m_alert_aggregator
| std::unique_ptr<AlertAggregator> rtctk::rtcSupervisor::RtcSupervisor::m_alert_aggregator |
|
protected |
◆ m_alerts
◆ m_command_alert
| AlertSource rtctk::rtcSupervisor::RtcSupervisor::m_command_alert |
|
protected |
◆ m_deferred_modes
| std::map<std::string, std::string> rtctk::rtcSupervisor::RtcSupervisor::m_deferred_modes |
|
protected |
◆ m_disable_alone
| bool rtctk::rtcSupervisor::RtcSupervisor::m_disable_alone |
|
protected |
◆ m_dp_path_disable_alone
| DataPointPath rtctk::rtcSupervisor::RtcSupervisor::m_dp_path_disable_alone |
|
protected |
◆ m_dp_path_enable_alone
| DataPointPath rtctk::rtcSupervisor::RtcSupervisor::m_dp_path_enable_alone |
|
protected |
◆ m_dp_path_init_alone
| DataPointPath rtctk::rtcSupervisor::RtcSupervisor::m_dp_path_init_alone |
|
protected |
◆ m_dp_path_status
| DataPointPath rtctk::rtcSupervisor::RtcSupervisor::m_dp_path_status |
|
protected |
◆ m_dp_path_update_alone
| DataPointPath rtctk::rtcSupervisor::RtcSupervisor::m_dp_path_update_alone |
|
protected |
◆ m_enable_alone
| bool rtctk::rtcSupervisor::RtcSupervisor::m_enable_alone |
|
protected |
◆ m_heartbeat_alert
| AlertSource rtctk::rtcSupervisor::RtcSupervisor::m_heartbeat_alert |
|
protected |
◆ m_init_alone
| bool rtctk::rtcSupervisor::RtcSupervisor::m_init_alone |
|
protected |
◆ m_logger
| log4cplus::Logger& rtctk::rtcSupervisor::RtcSupervisor::m_logger |
|
protected |
◆ m_metrics
◆ m_monitor_thread
| std::unique_ptr<RtcMonitor> rtctk::rtcSupervisor::RtcSupervisor::m_monitor_thread |
|
protected |
◆ m_name
| const std::string rtctk::rtcSupervisor::RtcSupervisor::m_name |
|
protected |
◆ m_object_controller
◆ m_objects
| std::vector<std::unique_ptr<RtcObjectIf> > rtctk::rtcSupervisor::RtcSupervisor::m_objects |
|
protected |
◆ m_oldb
| OldbIf& rtctk::rtcSupervisor::RtcSupervisor::m_oldb |
|
protected |
◆ m_oldb_alert
| AlertSource rtctk::rtcSupervisor::RtcSupervisor::m_oldb_alert |
|
protected |
◆ m_popcfg
◆ m_psr
◆ m_rtr
◆ m_service_discovery
◆ m_state_subscriber
| std::unique_ptr<StateSubscriber> rtctk::rtcSupervisor::RtcSupervisor::m_state_subscriber |
|
protected |
◆ m_status
| std::string rtctk::rtcSupervisor::RtcSupervisor::m_status |
|
protected |
◆ m_status_estimator
| std::unique_ptr<StatusEstimator> rtctk::rtcSupervisor::RtcSupervisor::m_status_estimator |
|
protected |
◆ m_status_mutex
| std::mutex rtctk::rtcSupervisor::RtcSupervisor::m_status_mutex |
|
protected |
◆ m_status_publisher
◆ m_update_alone
| bool rtctk::rtcSupervisor::RtcSupervisor::m_update_alone |
|
protected |
The documentation for this class was generated from the following files: