5 #ifndef __DDS__SSHScheduler__ 6 #define __DDS__SSHScheduler__ 18 namespace commander_cmd
36 using CollectionMap_t = std::map<size_t, std::vector<uint64_t>, std::greater<size_t>>;
41 using hostToChannelMap_t = std::map<std::tuple<uint64_t, std::string, std::string>, std::vector<size_t>>;
43 using hostCounterMap_t = std::map<std::pair<std::string, std::string>,
size_t>;
58 static bool hostPatternMatches(
const std::string& _hostPattern,
const std::string& _host);
70 hostToChannelMap_t& _hostToChannelMap,
71 std::set<uint64_t>& _scheduledTasks,
73 size_t _numRequirements,
74 hostCounterMap_t& _hostCounterMap);
78 hostToChannelMap_t& _hostToChannelMap,
79 std::set<uint64_t>& _scheduledTasks,
80 const std::set<uint64_t>& _tasksInCollections,
81 size_t _numRequirements,
83 hostCounterMap_t& _hostCounterMap);
86 const std::string& _hostName,
87 const std::string& _wnName,
88 const std::string& _elementName,
89 hostCounterMap_t& _hostCounterMap)
const;
topology_api::STopoRuntimeTask m_taskInfo
Definition: Scheduler.h:31
std::string toString()
Definition: Scheduler.cpp:363
std::map< size_t, std::vector< uint64_t >, std::greater< size_t > > CollectionMap_t
Definition: Scheduler.h:36
std::vector< SSchedule > ScheduleVector_t
Definition: Scheduler.h:35
Definition: Scheduler.h:20
uint64_t m_taskID
Definition: Scheduler.h:30
std::vector< dds::protocol_api::SWeakChannelInfo< CAgentChannel > > weakChannelInfoVector_t
Definition: Scheduler.h:37
const ScheduleVector_t & getSchedule() const
Definition: Scheduler.cpp:350
~CScheduler()
Definition: Scheduler.cpp:27
Miscellaneous functions and helpers are located here.
Definition: AgentConnectionManager.h:13
Definition: TopoCore.h:25
void makeSchedule(const topology_api::CTopoCore &_topology, const weakChannelInfoVector_t &_channels)
Definition: Scheduler.cpp:31
CScheduler()
Definition: Scheduler.cpp:23
static bool hostPatternMatches(const std::string &_hostPattern, const std::string &_host)
Definition: Scheduler.cpp:355
Definition: ChannelInfo.h:38
Definition: Scheduler.h:23
dds::protocol_api::SWeakChannelInfo< CAgentChannel > m_weakChannelInfo
Definition: Scheduler.h:32
SSchedule()
Definition: Scheduler.h:25
std::set< Id_t > IdSet_t
Note that ID is of type uint_64. ID is calculated using CRC64 algorithm.
Definition: TopoCore.h:30
std::vector< CTopoRequirement::Ptr_t > PtrVector_t
Definition: TopoRequirement.h:32