#include <SQLiteDBLogStorage.hpp>
Definition at line 51 of file SQLiteDBLogStorage.hpp.
kaa::SQLiteDBLogStorage::SQLiteDBLogStorage |
( |
const std::string & |
dbName = KAA_DEFAULT_LOG_DB_STORAGE , |
|
|
int |
optimizationMask = (int) SQLiteOptimizationOptions::SQLITE_NO_OPTIMIZATIONS |
|
) |
| |
kaa::SQLiteDBLogStorage::~SQLiteDBLogStorage |
( |
| ) |
|
virtual void kaa::SQLiteDBLogStorage::addLogRecord |
( |
LogRecordPtr |
record | ) |
|
|
virtual |
virtual std::size_t kaa::SQLiteDBLogStorage::getConsumedVolume |
( |
| ) |
|
|
virtual |
Returns amount of bytes collected logs are consumed.
- Returns
- Size (in bytes).
Implements kaa::ILogStorageStatus.
virtual RecordPack kaa::SQLiteDBLogStorage::getRecordBlock |
( |
std::size_t |
blockSize, |
|
|
std::size_t |
recordsBlockCount |
|
) |
| |
|
virtual |
Returns the block of log records which total size is less or equal to the specified block size.
- Parameters
-
[in] | blockSize | The maximum size (in bytes) of the requested log record block. |
- Returns
- The log record block marked by the unique
RecordBlockId
identifier.
Implements kaa::ILogStorage.
virtual std::size_t kaa::SQLiteDBLogStorage::getRecordsCount |
( |
| ) |
|
|
virtual |
virtual void kaa::SQLiteDBLogStorage::notifyUploadFailed |
( |
RecordBlockId |
id | ) |
|
|
virtual |
Notifies of the delivery of the log block marked by the specified id has been failed.
- Parameters
-
[in] | id | The unique identifier of the log block. |
Implements kaa::ILogStorage.
virtual void kaa::SQLiteDBLogStorage::removeRecordBlock |
( |
RecordBlockId |
id | ) |
|
|
virtual |
Removes the log block marked by the specified id.
- Parameters
-
[in] | id | The unique identifier of the log block. |
Implements kaa::ILogStorage.
The documentation for this class was generated from the following file: