client-cpp  0.7.0
kaa::LoggingTransport Class Reference

#include <LoggingTransport.hpp>

+ Inheritance diagram for kaa::LoggingTransport:
+ Collaboration diagram for kaa::LoggingTransport:

Public Member Functions

 LoggingTransport (IKaaChannelManager &manager, ILogProcessor &logProcessor)
 
virtual void sync ()
 
virtual std::shared_ptr
< LogSyncRequest > 
createLogSyncRequest ()
 
virtual void onLogSyncResponse (const LogSyncResponse &response)
 
- Public Member Functions inherited from kaa::AbstractKaaTransport< TransportType::LOGGING >
virtual ~AbstractKaaTransport ()
 
 AbstractKaaTransport (IKaaChannelManager &channelManager)
 
virtual void setClientState (IKaaClientStateStoragePtr status)
 
- Public Member Functions inherited from kaa::IKaaTransport
virtual ~IKaaTransport ()
 
- Public Member Functions inherited from kaa::ILoggingTransport
virtual ~ILoggingTransport ()
 

Additional Inherited Members

- Protected Member Functions inherited from kaa::AbstractKaaTransport< TransportType::LOGGING >
void syncByType (TransportType transportType=Type)
 
void syncAll ()
 
void syncAck (TransportType transportType=Type)
 
- Protected Attributes inherited from kaa::AbstractKaaTransport< TransportType::LOGGING >
const TransportType type_
 
IKaaChannelManagerchannelManager_
 
IKaaClientStateStoragePtr clientStatus_
 

Detailed Description

Definition at line 29 of file LoggingTransport.hpp.

Constructor & Destructor Documentation

kaa::LoggingTransport::LoggingTransport ( IKaaChannelManager manager,
ILogProcessor logProcessor 
)

Member Function Documentation

virtual std::shared_ptr<LogSyncRequest> kaa::LoggingTransport::createLogSyncRequest ( )
virtual

Creates the Log request that consists of current log records.

Returns
new Log request
See also
LogSyncRequest

Implements kaa::ILoggingTransport.

virtual void kaa::LoggingTransport::onLogSyncResponse ( const LogSyncResponse &  response)
virtual

Updates the state of the Log collector according to the given response.

Parameters
responsethe response from the server
See also
LogSyncResponse

Implements kaa::ILoggingTransport.

virtual void kaa::LoggingTransport::sync ( )
virtual

Sets the specific IKaaChannelManager for the current transport.

Parameters
channelManagermanager to be set.

Implements kaa::IKaaTransport.


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