| client-cpp
    0.7.0
    | 
The public interface for the log upload strategy. More...
#include <ILogUploadStrategy.hpp>
 Inheritance diagram for kaa::ILogUploadStrategy:
 Inheritance diagram for kaa::ILogUploadStrategy:| Public Member Functions | |
| virtual LogUploadStrategyDecision | isUploadNeeded (ILogStorageStatus &status)=0 | 
| Decides whether the log upload is needed.  More... | |
| virtual std::size_t | getBatchSize ()=0 | 
| Retrieves the maximum size of the report pack that will be delivered in the single request to the Operations server.  More... | |
| virtual std::size_t | getTimeout ()=0 | 
| Maximum time to wait the log delivery response.  More... | |
| virtual void | onTimeout ()=0 | 
| Callback is used when the log delivery timeout detected.  More... | |
| virtual void | onFailure (LogDeliveryErrorCode code)=0 | 
| Callback is used when the log delivery is failed.  More... | |
| virtual | ~ILogUploadStrategy () | 
The public interface for the log upload strategy.
The default implementation can be found in DefaultLogUploadStrategy. 
Definition at line 45 of file ILogUploadStrategy.hpp.
| 
 | inlinevirtual | 
Definition at line 93 of file ILogUploadStrategy.hpp.
| 
 | pure virtual | 
Retrieves the maximum size of the report pack that will be delivered in the single request to the Operations server.
Implemented in kaa::DefaultLogUploadStrategy.
| 
 | pure virtual | 
Maximum time to wait the log delivery response.
Implemented in kaa::DefaultLogUploadStrategy.
| 
 | pure virtual | 
Decides whether the log upload is needed.
The decision is made based on the current log storage status and, depending on the strategy implementation, on some additional information.
| [in] | status | The log storage status. | 
Implemented in kaa::DefaultLogUploadStrategy.
| 
 | pure virtual | 
Callback is used when the log delivery is failed.
| [in] | code | The reason code of the log delivery failure. | 
Implemented in kaa::DefaultLogUploadStrategy.
| 
 | pure virtual | 
Callback is used when the log delivery timeout detected.
More information about the detection of the log delivery timeout read in the documentation for ILogCollector. 
Implemented in kaa::DefaultLogUploadStrategy.