#include <ILogStorage.hpp>
Interface for log storage.
Default implementation can be found in MemoryLogStorage
- See also
- MemoryLogStorage
Definition at line 32 of file ILogStorage.hpp.
virtual kaa::ILogStorage::~ILogStorage |
( |
| ) |
|
|
inlinevirtual |
virtual void kaa::ILogStorage::addLogRecord |
( |
const LogRecord & |
record | ) |
|
|
pure virtual |
virtual container_type kaa::ILogStorage::getRecordBlock |
( |
size_t |
blockSize, |
|
|
const std::string & |
blockId |
|
) |
| |
|
pure virtual |
Returns record block of given size
- Parameters
-
blockSize | Size of a log record block |
blockId | Unique identifier of the log record block. |
- Returns
- Container of records
Implemented in kaa::MemoryLogStorage.
virtual void kaa::ILogStorage::notifyUploadFailed |
( |
const std::string & |
blockId | ) |
|
|
pure virtual |
Called when log block upload failed.
- Parameters
-
blockId | Unique identifier of the log block. |
Implemented in kaa::MemoryLogStorage.
virtual void kaa::ILogStorage::removeOldestRecords |
( |
size_t |
allowedVolume | ) |
|
|
pure virtual |
virtual void kaa::ILogStorage::removeRecordBlock |
( |
const std::string & |
blockId | ) |
|
|
pure virtual |
Called when log block was successfully uploaded.
- Parameters
-
blockId | Unique identifier of the log block. |
Implemented in kaa::MemoryLogStorage.
The documentation for this class was generated from the following file:
- /var/lib/jenkins/workspace/kaa/client/client-multi/client-cpp/kaa/log/ILogStorage.hpp