client-cpp
0.10.0
|
Interface of a log storage. More...
#include <ILogStorage.hpp>
Public Member Functions | |
virtual BucketInfo | addLogRecord (LogRecord &&record)=0 |
Persists a log record. More... | |
virtual ILogStorageStatus & | getStatus ()=0 |
Returns a log storage status. More... | |
virtual LogBucket | getNextBucket ()=0 |
Returns a new log bucket. More... | |
virtual void | removeBucket (std::int32_t bucketId)=0 |
Tells a log storage to remove a log bucket. More... | |
virtual void | rollbackBucket (std::int32_t bucketId)=0 |
Tells a log storage to consider a log bucket as unused, i.e. a log bucket will be accessible again via getNextBucket(). More... | |
virtual | ~ILogStorage () |
Interface of a log storage.
Persists log records, forms on demand a new log bucket for sending it to the Operation server, removes already sent log buckets, cleans up elder records in case if there is some limitation on a size of a log storage.
MemoryLogStorage
is used by default.
Definition at line 40 of file ILogStorage.hpp.
|
inlinevirtual |
Definition at line 87 of file ILogStorage.hpp.
|
pure virtual |
Persists a log record.
record | The LogRecord object. |
BucketInfo
object which contains information about a bucket the log record is added. Implemented in kaa::MemoryLogStorage, and kaa::SQLiteDBLogStorage.
|
pure virtual |
Returns a new log bucket.
LogBucket
object. Implemented in kaa::MemoryLogStorage, and kaa::SQLiteDBLogStorage.
|
pure virtual |
Returns a log storage status.
LogStorageStatus
object. Implemented in kaa::MemoryLogStorage, and kaa::SQLiteDBLogStorage.
|
pure virtual |
Tells a log storage to remove a log bucket.
bucketId | The id of a log bucket. |
Implemented in kaa::MemoryLogStorage, and kaa::SQLiteDBLogStorage.
|
pure 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. |
Implemented in kaa::MemoryLogStorage, and kaa::SQLiteDBLogStorage.