13#ifndef RTCTK_RTCSUPERVISOR_RTCOBJECTCONTROLLER_HPP
14#define RTCTK_RTCSUPERVISOR_RTCOBJECTCONTROLLER_HPP
69 std::map<std::string, std::string>
88 std::map<std::string, std::string>
97 std::vector<std::unique_ptr<RtcObjectIf>>&
m_objects;
The RtctkException class is the base class for all Rtctk exceptions.
Definition exceptions.hpp:211
Dedicated exception type to indicate errors.
Definition rtcObjectController.hpp:30
CommandFailedException(RtcCommand cmd, const std::vector< std::exception_ptr > &errs)
Definition rtcObjectController.cpp:34
Class used to control multiple RtcObjects.
Definition rtcObjectController.hpp:45
std::mutex m_command_mutex
Definition rtcObjectController.hpp:102
std::map< std::string, std::string > RunSequential(RtcCommand cmd, bool keep_going, std::optional< unsigned > timeout=std::nullopt)
Runs specified command on each object in sequence and waits for completion or error.
Definition rtcObjectController.cpp:44
log4cplus::Logger & m_logger
Definition rtcObjectController.hpp:94
RtcObjectController()=delete
virtual ~RtcObjectController()=default
std::map< std::string, std::string > RunParallel(RtcCommand cmd, std::optional< unsigned > timeout=std::nullopt)
Runs specified command on each object in parallel and waits for completion or error.
Definition rtcObjectController.cpp:78
std::vector< std::unique_ptr< RtcObjectIf > > & m_objects
reference to lists of objects
Definition rtcObjectController.hpp:97
Logging Support Library based on log4cplus.
elt::mal::future< std::string > InjectReqRepEvent(StateMachineEngine &engine)
Definition malEventInjector.hpp:23
Definition rtcSupervisor.cpp:24
RtcCommand
List of commands that can be issued by the RtcSupervisor.
Definition rtcObject.hpp:55
Handles communication with one supervised RtcComponent.