18 #ifndef STORAGESIZELOGUPLOADSTRATEGY_HPP_
19 #define STORAGESIZELOGUPLOADSTRATEGY_HPP_
42 KAA_LOG_INFO(boost::format(
"Need to upload logs - current size: %llu, threshold: %llu")
virtual std::size_t getConsumedVolume()=0
Returns amount of bytes collected logs are consumed.
std::size_t uploadVolumeThreshold_
The default ILogUploadStrategy implementation.
virtual LogUploadStrategyDecision isUploadNeeded(ILogStorageStatus &status) override
Decides whether the log upload is needed.
void setVolumeThreshold(std::size_t maxVolume)
#define KAA_LOG_INFO(message)
StorageSizeLogUploadStrategy(std::size_t volumeThreshold, IKaaClientContext &context)
LogUploadStrategyDecision
Log upload decisions.
The public interface to represent the current log storage state.