client-cpp
0.10.0
|
The public interface for the log upload strategy. More...
#include <ILogUploadStrategy.hpp>
Public Member Functions | |
virtual LogUploadStrategyDecision | isUploadNeeded (ILogStorageStatus &status)=0 |
Decides whether the log upload is needed. More... | |
virtual std::size_t | getTimeout ()=0 |
Maximum time to wait the log delivery response. More... | |
virtual std::size_t | getTimeoutCheckPeriod ()=0 |
virtual std::size_t | getLogUploadCheckPeriod ()=0 |
virtual std::size_t | getMaxParallelUploads ()=0 |
Max amount of log batches allowed to be uploaded parallel. More... | |
virtual void | onTimeout (ILogFailoverCommand &controller)=0 |
Callback is used when the log delivery timeout detected. More... | |
virtual void | onFailure (ILogFailoverCommand &controller, 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 46 of file ILogUploadStrategy.hpp.
|
inlinevirtual |
Definition at line 100 of file ILogUploadStrategy.hpp.
|
pure virtual |
Implemented in kaa::DefaultLogUploadStrategy.
|
pure virtual |
Max amount of log batches allowed to be uploaded parallel.
Implemented in kaa::DefaultLogUploadStrategy.
|
pure virtual |
Maximum time to wait the log delivery response.
[in] | controller |
Implemented in kaa::DefaultLogUploadStrategy.
|
pure virtual |
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, kaa::RecordCountWithTimeLimitLogUploadStrategy, kaa::StorageSizeWithTimeLimitLogUploadStrategy, kaa::PeriodicLogUploadStrategy, kaa::RecordCountLogUploadStrategy, and kaa::StorageSizeLogUploadStrategy.
|
pure virtual |
Callback is used when the log delivery is failed.
[in] | controller | |
[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.