client-cpp  0.10.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, IKaaClientContext &context)
 
virtual void sync ()
 
virtual std::shared_ptr
< LogSyncRequest > 
createLogSyncRequest ()
 
virtual void onLogSyncResponse (const LogSyncResponse &response, std::size_t deliveryTime)
 
- Public Member Functions inherited from kaa::AbstractKaaTransport< TransportType::LOGGING >
virtual ~AbstractKaaTransport ()
 
 AbstractKaaTransport (IKaaChannelManager &channelManager, IKaaClientContext &context)
 
- 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_
 
IKaaClientContextcontext_
 

Detailed Description

Definition at line 30 of file LoggingTransport.hpp.

Constructor & Destructor Documentation

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

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,
std::size_t  deliveryTime 
)
virtual

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

Parameters
responsethe response from the server
See Also
LogSyncResponse
Parameters
deliveryTimeThe time point the log was delivered at

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: