|
RTC Toolkit 5.1.0
|
Recording Unit that can record from shared memory queue. More...
#include <ipcqRecordingUnit.hpp>
Public Member Functions | |
| IpcqRecordingUnit (const std::string &comp_id, const std::string &unit_id, ServiceContainer &services) | |
| Create a new Ipcq Recorder reading from a given queue and outputting to the given output stage. | |
| virtual | ~IpcqRecordingUnit () |
| void | Prepare (const std::filesystem::path &file_path) override |
| Prepare the recording thread and start recording. | |
| void | Start () override |
| Start the recording. | |
| std::vector< std::filesystem::path > | Stop () override |
| Stop the recording thread and wait for it's termination. | |
| void | Update () override |
| Update settings from RuntimeRepo. | |
Public Member Functions inherited from rtctk::componentFramework::RecordingUnit | |
| RecordingUnit (const std::string &comp_id, const std::string &unit_id, const std::string &unit_type, ServiceContainer &services) | |
| Create a new RecordingIngestion. | |
| RecordingUnit ()=delete | |
| virtual | ~RecordingUnit ()=default |
| void | ConnectWithLeaders (RecUnitListType &units) |
| std::string | GetId () |
| Get the unit_it of this RecordingUnit. | |
| State | GetState () |
| Get the current state of the Recording Unit. | |
| virtual void | CheckErrors () |
| Check for Errors, will rethrow errors thrown in the recorder. | |
| boost::signals2::connection | Connect (const std::function< void(const std::string &, const State &)> &function) |
| Connect to State change signal. | |
Static Protected Member Functions | |
| static RecInfoType::Recorder::DisabledFields | GetDisabled (RepositoryIf &rtr, const DataPointPath &sub_path) |
| get disabled fields from a DataPoint in the runtime repo. | |
Additional Inherited Members | |
Public Types inherited from rtctk::componentFramework::RecordingUnit | |
| enum class | State : uint8_t { STOPPED , PREPARING , IDLE , WAITING , RUNNING , FINISHED , FAILED } |
Public Attributes inherited from rtctk::componentFramework::RecordingUnit | |
| const std::map< State, std::string > | m_state_text |
Protected Member Functions inherited from rtctk::componentFramework::RecordingUnit | |
| bool | SetState (State state, State precondition) |
| Sets the new state, only goes to new state, if expected state matches. | |
| void | SetState (State state, State precondition, const std::string &error_message) |
| Sets the new state, only goes to new state, if expected state matches. | |
| void | SetFailed (const std::exception_ptr &exception) |
| Set the unit into failed state, with the given exception. | |
| void | SetStopped () |
| Set the Unit state to STOPPED independent of the current State. | |
| bool | HasLeaders () |
| Check if this unit is following any leaders. | |
| bool | HasFirstLeaderStarted () |
| This function is used to determine if this unit should start recording when waiting for leaders. | |
| bool | HasLastLeaderFinished () |
| This function is used to determine if this unit should stop recording when waiting for leaders. | |
| void | ResetLeaderStates () |
Protected Attributes inherited from rtctk::componentFramework::RecordingUnit | |
| std::string | m_comp_id |
| std::string | m_unit_id |
| RuntimeRepoIf & | m_rtr |
| OldbIf & | m_oldb |
| ComponentMetricsIf & | m_metrics |
| std::optional< std::filesystem::path > | m_file_path |
| boost::signals2::signal< void(const std::string &, const State &) | m_signal ) |
Recording Unit that can record from shared memory queue.
| RecInfoType | RecordingInfo trait class for compile-time configuration. |
|
inline |
Create a new Ipcq Recorder reading from a given queue and outputting to the given output stage.
| comp_id | name of the component |
| unit_id | name of the recording unit |
| services | required services |
|
inlinevirtual |
|
staticprotected |
get disabled fields from a DataPoint in the runtime repo.
This datapoint should contain a string in the format "column1,column2" where the columns are the ones that should be recorded
| rtr | the runtime repo to use |
| sub_path | path to the datapoint |
|
overridevirtual |
Prepare the recording thread and start recording.
| file_path | file to record to |
Implements rtctk::componentFramework::RecordingUnit.
|
overridevirtual |
Start the recording.
Implements rtctk::componentFramework::RecordingUnit.
|
overridevirtual |
Stop the recording thread and wait for it's termination.
Implements rtctk::componentFramework::RecordingUnit.
|
overridevirtual |
Update settings from RuntimeRepo.
Reimplemented from rtctk::componentFramework::RecordingUnit.