client-cpp  0.10.0
kaa::BootstrapManager Class Reference

#include <BootstrapManager.hpp>

+ Inheritance diagram for kaa::BootstrapManager:
+ Collaboration diagram for kaa::BootstrapManager:

Public Member Functions

 BootstrapManager (IKaaClientContext &context, IKaaClient *client)
 
virtual void setFailoverStrategy (IFailoverStrategyPtr strategy)
 
virtual void receiveOperationsServerList ()
 
virtual void onOperationsServerFailed (const TransportProtocolId &protocolId, KaaFailoverReason reason)
 
virtual void useNextOperationsServerByAccessPointId (std::int32_t id)
 
virtual void setTransport (IBootstrapTransport *transport)
 
virtual void setChannelManager (IKaaChannelManager *manager)
 
virtual void onServerListUpdated (const std::vector< ProtocolMetaData > &operationsServers)
 
- Public Member Functions inherited from kaa::IBootstrapManager
virtual ~IBootstrapManager ()
 

Detailed Description

Definition at line 33 of file BootstrapManager.hpp.

Constructor & Destructor Documentation

kaa::BootstrapManager::BootstrapManager ( IKaaClientContext context,
IKaaClient client 
)
inline

Definition at line 35 of file BootstrapManager.hpp.

Member Function Documentation

virtual void kaa::BootstrapManager::onOperationsServerFailed ( const TransportProtocolId protocolId,
KaaFailoverReason  failoverReason 
)
virtual

Notifies Channel manager about new server meets given parameters.

Parameters
typethe channel's type (i.e. HTTP channel, HTTP long poll channel, etc.).
See Also
ChannelType
Parameters
failoverReasonThe reason why failover occured.

Implements kaa::IBootstrapManager.

virtual void kaa::BootstrapManager::onServerListUpdated ( const std::vector< ProtocolMetaData > &  operationsServers)
virtual

Updates the operation server list.

Parameters
listthe operation server list.
See Also
OperationsServerList

Implements kaa::IBootstrapManager.

virtual void kaa::BootstrapManager::receiveOperationsServerList ( )
virtual

Receives the latest list of servers from the bootstrap service.

Implements kaa::IBootstrapManager.

virtual void kaa::BootstrapManager::setChannelManager ( IKaaChannelManager manager)
virtual

Sets Channel manager.

Parameters
managerthe channel manager to be set.
See Also
IKaaChannelManager

Implements kaa::IBootstrapManager.

virtual void kaa::BootstrapManager::setFailoverStrategy ( IFailoverStrategyPtr  strategy)
virtual
virtual void kaa::BootstrapManager::setTransport ( IBootstrapTransport transport)
virtual

Sets bootstrap transport object.

Parameters
transportobject to be set.
See Also
IBootstrapTransport

Implements kaa::IBootstrapManager.

virtual void kaa::BootstrapManager::useNextOperationsServerByAccessPointId ( std::int32_t  id)
virtual

Update the Channel Manager with endpoint's properties retrieved by its DNS.

Parameters
nameendpoint's DNS.

Implements kaa::IBootstrapManager.


The documentation for this class was generated from the following file: