17 #ifndef ILOGUPLOADSTRATEGY_HPP_ 
   18 #define ILOGUPLOADSTRATEGY_HPP_ 
   23 #include "kaa/gen/EndpointGen.hpp" 
   30 class ILogStorageStatus;
 
   91     virtual void onFailure(LogDeliveryErrorCode code) = 0;
 
The public interface for the log upload strategy. 
 
virtual ~ILogUploadStrategy()
 
virtual LogUploadStrategyDecision isUploadNeeded(ILogStorageStatus &status)=0
Decides whether the log upload is needed. 
 
virtual std::size_t getTimeout()=0
Maximum time to wait the log delivery response. 
 
virtual void onTimeout()=0
Callback is used when the log delivery timeout detected. 
 
virtual std::size_t getBatchSize()=0
Retrieves the maximum size of the report pack that will be delivered in the single request to the Ope...
 
std::shared_ptr< ILogUploadStrategy > ILogUploadStrategyPtr
 
virtual void onFailure(LogDeliveryErrorCode code)=0
Callback is used when the log delivery is failed. 
 
LogUploadStrategyDecision
Log upload decisions. 
 
The public interface to represent the current log storage state.