5 #ifndef __DDS__SSHScheduler__ 6 #define __DDS__SSHScheduler__ 18 namespace commander_cmd
36 typedef std::map<size_t, std::vector<uint64_t>, std::greater<size_t>>
CollectionMap_t;
41 typedef std::map<std::tuple<uint64_t, std::string, std::string>, std::vector<size_t>> hostToChannelMap_t;
43 typedef std::map<std::pair<std::string, std::string>,
size_t> hostCounterMap_t;
58 static bool hostPatternMatches(
const std::string& _hostPattern,
const std::string& _host);
70 hostToChannelMap_t& _hostToChannelMap,
71 std::set<uint64_t>& _scheduledTasks,
74 hostCounterMap_t& _hostCounterMap);
78 hostToChannelMap_t& _hostToChannelMap,
79 std::set<uint64_t>& _scheduledTasks,
80 const std::set<uint64_t>& _tasksInCollections,
83 hostCounterMap_t& _hostCounterMap);
87 const std::string& _hostName,
88 const std::string& _wnName,
89 const std::string& _elementName,
90 hostCounterMap_t& _hostCounterMap)
const;
std::shared_ptr< CTopoRequirement > Ptr_t
Definition: TopoRequirement.h:31
SSchedule()
Definition: SSHScheduler.h:25
topology_api::STopoRuntimeTask m_taskInfo
Definition: SSHScheduler.h:31
uint64_t m_taskID
Definition: SSHScheduler.h:30
~CSSHScheduler()
Definition: SSHScheduler.cpp:25
dds::protocol_api::SWeakChannelInfo< CAgentChannel > m_weakChannelInfo
Definition: SSHScheduler.h:32
static bool hostPatternMatches(const std::string &_hostPattern, const std::string &_host)
Definition: SSHScheduler.cpp:358
CSSHScheduler()
Definition: SSHScheduler.cpp:21
std::vector< dds::protocol_api::SWeakChannelInfo< CAgentChannel > > weakChannelInfoVector_t
Definition: SSHScheduler.h:37
std::string toString()
Definition: SSHScheduler.cpp:366
Definition: AgentConnectionManager.h:13
Definition: TopoCore.h:25
void makeSchedule(const topology_api::CTopoCore &_topology, const weakChannelInfoVector_t &_channels)
Definition: SSHScheduler.cpp:29
std::map< size_t, std::vector< uint64_t >, std::greater< size_t > > CollectionMap_t
Definition: SSHScheduler.h:36
std::vector< SSchedule > ScheduleVector_t
Definition: SSHScheduler.h:35
Definition: ChannelInfo.h:38
Definition: SSHScheduler.h:20
const ScheduleVector_t & getSchedule() const
Definition: SSHScheduler.cpp:353
Definition: SSHScheduler.h:23
std::set< Id_t > IdSet_t
Note that ID is of type uint_64. ID is calculated using CRC64 algorithm.
Definition: TopoCore.h:30