5 #ifndef __DDS__SSHScheduler__ 6 #define __DDS__SSHScheduler__ 17 namespace commander_cmd
37 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;
57 static bool hostPatternMatches(
const std::string& _hostPattern,
const std::string& _host);
69 hostToChannelMap_t& _hostToChannelMap,
70 std::set<uint64_t>& _scheduledTasks,
71 const CollectionMap_t& _collectionMap,
76 hostToChannelMap_t& _hostToChannelMap,
77 std::set<uint64_t>& _scheduledTasks,
78 const std::set<uint64_t>& _tasksInCollections,
83 ScheduleVector_t m_schedule;
SSchedule()
Definition: SSHScheduler.h:24
uint64_t m_taskID
Definition: SSHScheduler.h:31
~CSSHScheduler()
Definition: SSHScheduler.cpp:21
static bool hostPatternMatches(const std::string &_hostPattern, const std::string &_host)
Definition: SSHScheduler.cpp:276
CSSHScheduler()
Definition: SSHScheduler.cpp:17
std::weak_ptr< CAgentChannel > weakConnectionPtr_t
Definition: BaseChannelImpl.h:193
Definition: Topology.h:27
std::string toString()
Definition: SSHScheduler.cpp:284
std::set< uint64_t > HashSet_t
Definition: Topology.h:63
Definition: dds-agent/src/AgentConnectionManager.h:16
Definition: Topology.h:42
topology_api::STaskInfo m_taskInfo
Definition: SSHScheduler.h:32
std::map< size_t, std::vector< uint64_t >, std::greater< size_t > > CollectionMap_t
Definition: SSHScheduler.h:37
std::vector< SSchedule > ScheduleVector_t
Definition: SSHScheduler.h:36
CAgentChannel::weakConnectionPtr_t m_channel
Definition: SSHScheduler.h:33
std::vector< weakConnectionPtr_t > weakConnectionPtrVector_t
Definition: BaseChannelImpl.h:195
Definition: SSHScheduler.h:19
const ScheduleVector_t & getSchedule() const
Definition: SSHScheduler.cpp:271
Definition: SSHScheduler.h:22
void makeSchedule(const topology_api::CTopology &_topology, const CAgentChannel::weakConnectionPtrVector_t &_channels)
Definition: SSHScheduler.cpp:25