client-cpp
0.10.0
|
#include <StorageSizeLogUploadStrategy.hpp>
Public Member Functions | |
StorageSizeLogUploadStrategy (std::size_t volumeThreshold, IKaaClientContext &context) | |
virtual LogUploadStrategyDecision | isUploadNeeded (ILogStorageStatus &status) override |
Decides whether the log upload is needed. More... | |
Public Member Functions inherited from kaa::DefaultLogUploadStrategy | |
DefaultLogUploadStrategy (IKaaClientContext &context) | |
virtual void | onTimeout (ILogFailoverCommand &controller) |
Callback is used when the log delivery timeout detected. More... | |
virtual void | onFailure (ILogFailoverCommand &controller, LogDeliveryErrorCode code) |
Callback is used when the log delivery is failed. More... | |
virtual std::size_t | getTimeout () |
Maximum time to wait the log delivery response. More... | |
void | setUploadTimeout (std::size_t timeout) |
virtual std::size_t | getTimeoutCheckPeriod () |
void | setTimeoutCheckPeriod (std::size_t period) |
virtual std::size_t | getLogUploadCheckPeriod () |
void | setLogUploadCheckPeriod (std::size_t period) |
virtual std::size_t | getMaxParallelUploads () |
Max amount of log batches allowed to be uploaded parallel. More... | |
void | setMaxParallelUploads (std::size_t count) |
std::size_t | getRetryPeriod () |
void | setRetryPeriod (std::size_t period) |
std::size_t | getVolumeThreshold () const |
void | setVolumeThreshold (std::size_t maxVolume) |
std::size_t | getCountThreshold () const |
void | setCountThreshold (std::size_t maxCount) |
Public Member Functions inherited from kaa::ILogUploadStrategy | |
virtual | ~ILogUploadStrategy () |
Definition at line 29 of file StorageSizeLogUploadStrategy.hpp.
|
inline |
Definition at line 31 of file StorageSizeLogUploadStrategy.hpp.
|
inlineoverridevirtual |
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. |
Reimplemented from kaa::DefaultLogUploadStrategy.
Definition at line 37 of file StorageSizeLogUploadStrategy.hpp.