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::pair<std::string, std::string>, std::vector<size_t>> hostToChannelMap_t;
50 const weakChannelInfoVector_t& _channels,
56 static bool hostPatternMatches(
const std::string& _hostPattern,
const std::string& _host);
62 const weakChannelInfoVector_t& _channels,
67 const weakChannelInfoVector_t& _channels,
68 hostToChannelMap_t& _hostToChannelMap,
69 std::set<uint64_t>& _scheduledTasks,
70 const CollectionMap_t& _collectionMap,
74 const weakChannelInfoVector_t& _channels,
75 hostToChannelMap_t& _hostToChannelMap,
76 std::set<uint64_t>& _scheduledTasks,
77 const std::set<uint64_t>& _tasksInCollections,
82 ScheduleVector_t m_schedule;
SSchedule()
Definition: SSHScheduler.h:25
void makeSchedule(const topology_api::CTopology &_topology, const weakChannelInfoVector_t &_channels)
Definition: SSHScheduler.cpp:25
uint64_t m_taskID
Definition: SSHScheduler.h:30
~CSSHScheduler()
Definition: SSHScheduler.cpp:21
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:277
CSSHScheduler()
Definition: SSHScheduler.cpp:17
Definition: Topology.h:27
std::vector< dds::protocol_api::SWeakChannelInfo< CAgentChannel > > weakChannelInfoVector_t
Definition: SSHScheduler.h:37
std::string toString()
Definition: SSHScheduler.cpp:285
std::set< uint64_t > HashSet_t
Definition: Topology.h:63
Definition: dds-agent/src/AgentConnectionManager.h:18
Definition: Topology.h:42
topology_api::STaskInfo m_taskInfo
Definition: SSHScheduler.h:31
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:39
Definition: SSHScheduler.h:20
const ScheduleVector_t & getSchedule() const
Definition: SSHScheduler.cpp:272
Definition: SSHScheduler.h:23