5 #ifndef __DDS__ConnectionManager__ 6 #define __DDS__ConnectionManager__ 21 namespace commander_cmd
24 public std::enable_shared_from_this<CConnectionManager>
39 void on_cmdBINARY_ATTACHMENT_RECEIVED(
43 void on_cmdTRANSPORT_TEST(
53 void on_cmdUSER_TASK_DONE(
57 void on_cmdGET_PROP_LIST(
61 void on_cmdGET_PROP_VALUES(
76 const std::string& _msg,
78 template <protocol_api::ECmdType _cmd>
80 template <protocol_api::ECmdType _cmd>
81 void broadcastUpdateTopologyAndWait_impl(
85 template <protocol_api::ECmdType _cmd>
86 void broadcastUpdateTopologyAndWait_impl(
size_t index,
88 const std::string& _filePath,
89 const std::string& _filename);
90 template <protocol_api::ECmdType _cmd>
91 void broadcastUpdateTopologyAndWait_impl(
size_t index,
93 const std::vector<std::string>& _filePaths,
94 const std::vector<std::string>& _filenames);
95 template <protocol_api::ECmdType _cmd>
96 void broadcastUpdateTopologyAndWait_impl(
104 void _createWnPkg(
bool _needInlineBashScript,
bool _lightweightPkg, uint32_t _nSlots)
const;
114 const std::string& _msg,
116 void sendUICommanderInfo(
const dds::tools_api::SCommanderInfoRequestData& _info,
118 void sendUIAgentInfo(
const dds::tools_api::SAgentInfoRequestData& _info,
120 void sendUISlotInfo(
const dds::tools_api::SSlotInfoRequestData& _info,
122 void sendUIAgentCount(
const dds::tools_api::SAgentCountRequestData& _info,
138 typedef std::map<uint64_t, weakChannelInfo_t> TaskIDToAgentChannelMap_t;
139 TaskIDToAgentChannelMap_t m_taskIDToAgentChannelMap;
140 std::mutex m_mapMutex;
145 typedef std::pair<CAgentChannel::weakConnectionPtr_t, dds::tools_api::SOnTaskDoneRequestData>
146 onTaskDoneSubscriberInfo_t;
147 typedef std::list<onTaskDoneSubscriberInfo_t> weakConnectionPtrList_t;
148 weakConnectionPtrList_t m_onTaskDoneSubscribers;
149 std::mutex m_mtxOnTaskDoneSubscribers;
void _start()
Definition: ConnectionManager.cpp:43
std::shared_ptr< CAgentChannel > connectionPtr_t
Definition: BaseChannelImpl.h:229
SWeakChannelInfo< CAgentChannel > weakChannelInfo_t
Definition: ConnectionManagerImpl.h:41
Definition: BaseEventHandlersImpl.h:48
void _stop()
Definition: ConnectionManager.cpp:65
Definition: Scheduler.h:20
std::shared_ptr< SEmptyCmd > ptr_t
Definition: CommandAttachmentImpl.h:64
void _createInfoFile(const std::vector< size_t > &_ports) const
Definition: ConnectionManager.cpp:171
Definition: UIChannelInfo.h:249
Definition: UIChannelInfo.h:288
Helper class for conditional events.
Definition: ConditionEvent.h:17
Definition: ConnectionManager.h:23
std::weak_ptr< CAgentChannel > weakConnectionPtr_t
Definition: BaseChannelImpl.h:230
CConnectionManager(const SOptions_t &_options)
Definition: ConnectionManager.cpp:33
Definition: UIChannelInfo.h:338
Miscellaneous functions and helpers are located here.
Definition: AgentConnectionManager.h:13
void newClientCreated(CAgentChannel::connectionPtr_t _newClient)
Definition: ConnectionManager.cpp:69
Definition: TopoCore.h:25
dds-commander's container of options
Definition: dds-commander/src/Options.h:23
Definition: CustomCmdCmd.h:14
EMsgSeverity
Enumeration with message severity.
Definition: Intercom.h:126
void _deleteInfoFile() const
Definition: ConnectionManager.cpp:207
~CConnectionManager()
Definition: ConnectionManager.cpp:39
Base class for connection managers.
Definition: ConnectionManagerImpl.h:37
std::vector< SWeakChannelInfo > container_t
Definition: ChannelInfo.h:52
Definition: UIChannelInfo.h:391
ECmdType
Definition: ProtocolCommands.h:25