5 #ifndef __DDS__CAgentChannel__ 6 #define __DDS__CAgentChannel__ 14 namespace commander_cmd
22 const std::array<std::string, 3>
g_agentStates = { {
"unknown",
"idle",
"executing" } };
49 CAgentChannel(boost::asio::io_service& _service, uint64_t _protocolHeaderID = 0);
103 void updateAgentInfo(uint64_t _protocolHeaderID,
const SAgentInfo& _info);
108 SAgentInfo getAgentInfo(uint64_t _protocolHeaderID);
109 LobbyProtocolHeaderIdContainer_t getLobbyPHID()
const;
115 bool on_cmdREPLY_HOST_INFO(
124 bool on_cmdBINARY_ATTACHMENT_RECEIVED(
127 bool on_cmdGET_AGENTS_INFO(
130 bool on_cmdTRANSPORT_TEST(
137 bool on_cmdUSER_TASK_DONE(
140 bool on_cmdWATCHDOG_HEARTBEAT(
143 bool on_cmdGET_PROP_LIST(
146 bool on_cmdGET_PROP_VALUES(
149 bool on_cmdUPDATE_TOPOLOGY(
152 bool on_cmdENABLE_STAT(
155 bool on_cmdDISABLE_STAT(
163 std::string _remoteEndIDString();
166 std::string m_sCurrentTopoFile;
167 AgentInfoContainer_t m_info;
168 std::mutex m_mtxInfo;
Definition: ProtocolCommands.h:53
Definition: dds-commander/src/AgentChannel.h:47
Definition: BaseEventHandlersImpl.h:48
uint64_t m_taskID
Definition: dds-commander/src/AgentChannel.h:39
Definition: ProtocolCommands.h:62
EAgentState
Definition: dds-commander/src/AgentChannel.h:16
std::chrono::milliseconds m_startUpTime
Definition: dds-commander/src/AgentChannel.h:40
#define MESSAGE_HANDLER(msg, func)
Definition: BaseChannelImpl.h:112
uint64_t m_id
Definition: dds-commander/src/AgentChannel.h:37
Definition: ProtocolCommands.h:47
Definition: ProtocolCommands.h:38
protocol_api::SHostInfoCmd m_remoteHostInfo
Definition: dds-commander/src/AgentChannel.h:38
std::shared_ptr< SEmptyCmd > ptr_t
Definition: CommandAttachmentImpl.h:66
EAgentState m_state
Definition: dds-commander/src/AgentChannel.h:41
const std::array< std::string, 3 > g_agentStates
Definition: dds-commander/src/AgentChannel.h:22
Definition: ProtocolCommands.h:60
Definition: ProtocolCommands.h:63
std::map< uint64_t, SAgentInfo > AgentInfoContainer_t
Definition: dds-commander/src/AgentChannel.h:44
Definition: ProtocolCommands.h:33
#define END_MSG_MAP()
Definition: BaseChannelImpl.h:134
Definition: ProtocolCommands.h:32
Definition: dds-agent/src/AgentConnectionManager.h:18
Definition: ProtocolCommands.h:66
Definition: ProtocolCommands.h:54
Definition: dds-commander/src/AgentChannel.h:19
Definition: ProtocolCommands.h:57
Definition: dds-commander/src/AgentChannel.h:24
bool m_lobbyLeader
Definition: dds-commander/src/AgentChannel.h:34
Definition: dds-commander/src/AgentChannel.h:20
Definition: HostInfoCmd.h:15
Definition: ProtocolCommands.h:64
Definition: ProtocolCommands.h:65
Definition: BaseChannelImpl.h:43
Definition: ProtocolCommands.h:44
Definition: ProtocolCommands.h:37
Definition: ProtocolCommands.h:46
std::vector< uint64_t > LobbyProtocolHeaderIdContainer_t
Definition: dds-commander/src/AgentChannel.h:45
Definition: ProtocolCommands.h:41
Definition: ProtocolCommands.h:52
Definition: dds-commander/src/AgentChannel.h:18
SAgentInfo()
Definition: dds-commander/src/AgentChannel.h:26
#define BEGIN_MSG_MAP(theClass)
Definition: BaseChannelImpl.h:49
Definition: ProtocolCommands.h:58