18 #ifndef STORAGESIZEWITHTIMELIMITLOGUPLOADSTRATEGY_HPP_ 
   19 #define STORAGESIZEWITHTIMELIMITLOGUPLOADSTRATEGY_HPP_ 
   41         auto now = Clock::now();
 
   45             KAA_LOG_INFO(boost::format(
"Need to upload logs - current size: %llu, threshold: %llu, lastUploadedTime: %llu, timeLimit: %llu sec")
 
   47             lastUploadTime_ = now;
 
   55     typedef std::chrono::system_clock Clock;
 
   56     std::chrono::time_point<Clock> lastUploadTime_;
 
virtual std::size_t getConsumedVolume()=0
Returns amount of bytes collected logs are consumed. 
 
std::size_t uploadVolumeThreshold_
 
void setLogUploadCheckPeriod(std::size_t period)
 
The default ILogUploadStrategy implementation. 
 
void setVolumeThreshold(std::size_t maxVolume)
 
#define KAA_LOG_INFO(message)
 
virtual LogUploadStrategyDecision isUploadNeeded(ILogStorageStatus &status) override
Decides whether the log upload is needed. 
 
LogUploadStrategyDecision
Log upload decisions. 
 
StorageSizeWithTimeLimitLogUploadStrategy(std::size_t volumeThreshold, std::size_t logUploadCheckReriod, IKaaClientContext &context)
 
The public interface to represent the current log storage state. 
 
std::size_t logUploadCheckReriod_