client-cpp
0.10.0
|
#include <LogCollector.hpp>
Public Member Functions | |
LogCollector (IKaaChannelManagerPtr manager, IKaaClientContext &context) | |
virtual RecordFuture | 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 void | setLogDeliveryListener (ILogDeliveryListenerPtr listener) |
Set a listener which receives a delivery status of each log bucket. More... | |
virtual std::shared_ptr < LogSyncRequest > | getLogUploadRequest () |
virtual void | onLogUploadResponse (const LogSyncResponse &response, std::size_t deliveryTime) |
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 68 of file LogCollector.hpp.
kaa::LogCollector::LogCollector | ( | IKaaChannelManagerPtr | manager, |
IKaaClientContext & | context | ||
) |
|
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 service. |
deliveryTime | The time point the log was delivered at. |
Implements kaa::ILogProcessor.
|
inlinevirtual |
Set a listener which receives a delivery status of each log bucket.
Implements kaa::ILogCollector.
Definition at line 77 of file LogCollector.hpp.
|
virtual |
Sets the new log storage.
MemoryLogStorage
is used by default.
[in] | storage | The ILogStorage implementation. |
KaaException | The storage is NULL. |
Implements kaa::ILogCollector.
|
inline |
Definition at line 84 of file LogCollector.hpp.
|
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.