|
client-cpp
0.9.0
|
#include <SQLiteDBLogStorage.hpp>
Inheritance diagram for kaa::SQLiteDBLogStorage:
Collaboration diagram for kaa::SQLiteDBLogStorage:Public Member Functions | |
| SQLiteDBLogStorage (IKaaClientContext &context, std::size_t bucketSize=LogStorageConstants::DEFAULT_MAX_BUCKET_SIZE, std::size_t bucketRecordCount=LogStorageConstants::DEFAULT_MAX_BUCKET_RECORD_COUNT) | |
| SQLiteDBLogStorage (IKaaClientContext &context, const std::string &dbName, int optimizationMask=(int) SQLiteOptimizationOptions::SQLITE_NO_OPTIMIZATIONS, std::size_t bucketSize=LogStorageConstants::DEFAULT_MAX_BUCKET_SIZE, std::size_t bucketRecordCount=LogStorageConstants::DEFAULT_MAX_BUCKET_RECORD_COUNT) | |
| ~SQLiteDBLogStorage () | |
| virtual BucketInfo | addLogRecord (LogRecord &&record) |
| Persists a log record. More... | |
| virtual ILogStorageStatus & | getStatus () |
| Returns a log storage status. More... | |
| virtual LogBucket | getNextBucket () |
| Returns a new log bucket. More... | |
| virtual void | removeBucket (std::int32_t bucketId) |
| Tells a log storage to remove a log bucket. More... | |
| virtual void | rollbackBucket (std::int32_t bucketId) |
| Tells a log storage to consider a log bucket as unused, i.e. a log bucket will be accessible again via getNextBucket(). More... | |
| virtual std::size_t | getConsumedVolume () |
| Returns amount of bytes collected logs are consumed. More... | |
| virtual std::size_t | getRecordsCount () |
| Returns the number of collected logs. More... | |
Public Member Functions inherited from kaa::ILogStorage | |
| virtual | ~ILogStorage () |
Public Member Functions inherited from kaa::ILogStorageStatus | |
| virtual | ~ILogStorageStatus () |
Definition at line 56 of file SQLiteDBLogStorage.hpp.
| kaa::SQLiteDBLogStorage::SQLiteDBLogStorage | ( | IKaaClientContext & | context, |
| std::size_t | bucketSize = LogStorageConstants::DEFAULT_MAX_BUCKET_SIZE, |
||
| std::size_t | bucketRecordCount = LogStorageConstants::DEFAULT_MAX_BUCKET_RECORD_COUNT |
||
| ) |
| kaa::SQLiteDBLogStorage::SQLiteDBLogStorage | ( | IKaaClientContext & | context, |
| const std::string & | dbName, | ||
| int | optimizationMask = (int) SQLiteOptimizationOptions::SQLITE_NO_OPTIMIZATIONS, |
||
| std::size_t | bucketSize = LogStorageConstants::DEFAULT_MAX_BUCKET_SIZE, |
||
| std::size_t | bucketRecordCount = LogStorageConstants::DEFAULT_MAX_BUCKET_RECORD_COUNT |
||
| ) |
| kaa::SQLiteDBLogStorage::~SQLiteDBLogStorage | ( | ) |
|
virtual |
Persists a log record.
| record | The LogRecord object. |
BucketInfo object which contains information about a bucket the log record is added. Implements kaa::ILogStorage.
|
virtual |
Returns amount of bytes collected logs are consumed.
Implements kaa::ILogStorageStatus.
|
virtual |
Returns a new log bucket.
LogBucket object. Implements kaa::ILogStorage.
|
virtual |
Returns the number of collected logs.
Implements kaa::ILogStorageStatus.
|
inlinevirtual |
Returns a log storage status.
LogStorageStatus object. Implements kaa::ILogStorage.
Definition at line 71 of file SQLiteDBLogStorage.hpp.
|
virtual |
Tells a log storage to remove a log bucket.
| bucketId | The id of a log bucket. |
Implements kaa::ILogStorage.
|
virtual |
Tells a log storage to consider a log bucket as unused, i.e. a log bucket will be accessible again via getNextBucket().
| bucketId | The id of a log bucket. |
Implements kaa::ILogStorage.