#include <MemoryLogStorage.hpp>
Default ILogStorage implementation.
Log records are stored in memory. After application restarts logs will be purged. 
Definition at line 33 of file MemoryLogStorage.hpp.
 
  
  
      
        
          | kaa::MemoryLogStorage::MemoryLogStorage  | 
          ( | 
          size_t  | 
          blockSize | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | kaa::MemoryLogStorage::~MemoryLogStorage  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
inline   | 
  
 
 
  
  
      
        
          | void kaa::MemoryLogStorage::addLogRecord  | 
          ( | 
          const LogRecord &  | 
          record | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
  
  
      
        
          | size_t kaa::MemoryLogStorage::getConsumedVolume  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
virtual   | 
  
 
 
  
  
      
        
          | container_type kaa::MemoryLogStorage::getRecordBlock  | 
          ( | 
          size_t  | 
          blockSize,  | 
         
        
           | 
           | 
          const std::string &  | 
          blockId  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
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 
 
Implements kaa::ILogStorage.
 
 
  
  
      
        
          | size_t kaa::MemoryLogStorage::getRecordsCount  | 
          ( | 
           | ) | 
           const | 
         
       
   | 
  
virtual   | 
  
 
 
  
  
      
        
          | void kaa::MemoryLogStorage::notifyUploadFailed  | 
          ( | 
          const std::string &  | 
          blockId | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
Called when log block upload failed.
- Parameters
 - 
  
    | blockId | Unique identifier of the log block.  | 
  
   
Implements kaa::ILogStorage.
 
 
  
  
      
        
          | void kaa::MemoryLogStorage::removeOldestRecords  | 
          ( | 
          size_t  | 
          allowedVolume | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
 
  
  
      
        
          | void kaa::MemoryLogStorage::removeRecordBlock  | 
          ( | 
          const std::string &  | 
          blockId | ) | 
           | 
         
       
   | 
  
virtual   | 
  
 
Called when log block was successfully uploaded.
- Parameters
 - 
  
    | blockId | Unique identifier of the log block.  | 
  
   
Implements kaa::ILogStorage.
 
 
The documentation for this class was generated from the following file: