17 #ifndef BOOTSTRAPMANAGER_HPP_
18 #define BOOTSTRAPMANAGER_HPP_
22 #include "kaa/gen/BootstrapGen.hpp"
42 const OperationsServer* getOPSByDnsName(
const std::string& name);
43 IServerInfoPtr getServerInfoByChannel(
const OperationsServer& server,
const SupportedChannel& channel);
44 IServerInfoPtr getServerInfoByChannelType(
const OperationsServer& server, ChannelType channelType);
45 void notifyChannelManangerAboutServer(
const OperationsServer& server);
47 std::vector<OperationsServer> operationServerList_;
48 std::map<ChannelType, std::vector<OperationsServer> > operationServers_;
49 std::map<ChannelType, std::size_t > operationServersIterators_;
54 std::string serverToApply;
56 KAA_R_MUTEX_MUTABLE_DECLARE(guard_);
virtual void setTransport(IBootstrapTransport *transport)
virtual void useNextOperationsServerByDnsName(const std::string &name)
std::shared_ptr< IServerInfo > IServerInfoPtr
virtual void setChannelManager(IKaaChannelManager *manager)
virtual const std::vector< OperationsServer > & getOperationsServerList()
virtual void useNextOperationsServer(ChannelType type)
virtual void receiveOperationsServerList()
virtual void onServerListUpdated(const OperationsServerList &list)