17 #ifndef BOOTSTRAPMANAGER_HPP_
18 #define BOOTSTRAPMANAGER_HPP_
36 : bootstrapTransport_(nullptr)
37 , channelManager_(nullptr)
39 , retryTimer_(
"BootstrapManager retryTimer")
54 typedef std::vector<ITransportConnectionInfoPtr> OperationsServers;
56 OperationsServers getOPSByAccessPointId(std::int32_t
id);
57 void notifyChannelManangerAboutServer(
const OperationsServers& servers);
62 std::map<TransportProtocolId, OperationsServers > operationServers_;
63 std::map<TransportProtocolId, OperationsServers::iterator > lastOperationsServers_;
72 std::unique_ptr<std::int32_t> serverToApply;
79 KAA_R_MUTEX_MUTABLE_DECLARE(guard_);
virtual void setTransport(IBootstrapTransport *transport)
std::shared_ptr< IFailoverStrategy > IFailoverStrategyPtr
virtual void onOperationsServerFailed(const TransportProtocolId &protocolId, KaaFailoverReason reason)
virtual void setFailoverStrategy(IFailoverStrategyPtr strategy)
virtual void setChannelManager(IKaaChannelManager *manager)
BootstrapManager(IKaaClientContext &context, IKaaClient *client)
virtual void useNextOperationsServerByAccessPointId(std::int32_t id)
virtual void onServerListUpdated(const std::vector< ProtocolMetaData > &operationsServers)
virtual void receiveOperationsServerList()