client-cpp
0.7.4
|
#include <LogCollector.hpp>
Public Member Functions | |
LogCollector (IKaaChannelManagerPtr manager, IExecutorContext &executorContext, const KaaClientProperties &clientProperties) | |
virtual void | addLogRecord (const KaaUserLogRecord &record) |
Adds a new log record to the log storage. More... | |
virtual void | setStorage (ILogStoragePtr storage) |
Sets the new log storage. More... | |
virtual void | setUploadStrategy (ILogUploadStrategyPtr strategy) |
Sets the new log upload strategy. More... | |
virtual std::shared_ptr < LogSyncRequest > | getLogUploadRequest () |
virtual void | onLogUploadResponse (const LogSyncResponse &response) |
void | setTransport (LoggingTransport *transport) |
Public Member Functions inherited from kaa::ILogCollector | |
virtual | ~ILogCollector () |
Public Member Functions inherited from kaa::ILogProcessor | |
virtual | ~ILogProcessor () |
Public Member Functions inherited from kaa::ILogFailoverCommand | |
virtual | ~ILogFailoverCommand () |
Public Member Functions inherited from kaa::IAccessPointCommand | |
virtual | ~IAccessPointCommand () |
Default ILogCollector
implementation.
Definition at line 64 of file LogCollector.hpp.
kaa::LogCollector::LogCollector | ( | IKaaChannelManagerPtr | manager, |
IExecutorContext & | executorContext, | ||
const KaaClientProperties & | clientProperties | ||
) |
|
virtual |
Adds a new log record to the log storage.
To store log records, MemoryLogStorage
is used by default. Use setStorage() to set your own implementation.
[in] | record | The log record to be added. |
Implements kaa::ILogCollector.
|
virtual |
Implements kaa::ILogProcessor.
|
virtual |
Called when log upload response arrived.
response | Response from operations server. |
Implements kaa::ILogProcessor.
|
virtual |
Sets the new log storage.
MemoryLogStorage
is used by default.
[in] | storage | The ILogStorage implementation. |
KaaException | The storage is NULL. |
Implements kaa::ILogCollector.
void kaa::LogCollector::setTransport | ( | LoggingTransport * | transport | ) |
|
virtual |
Sets the new log upload strategy.
DefaultLogUploadStrategy
is used by default.
[in] | strategy | The ILogUploadStrategy implementation. |
KaaException | The strategy is NULL. |
Implements kaa::ILogCollector.