The public interface for the log upload strategy.
More...
#include <ILogUploadStrategy.hpp>
The public interface for the log upload strategy.
The default implementation can be found in DefaultLogUploadStrategy
.
Definition at line 46 of file ILogUploadStrategy.hpp.
virtual kaa::ILogUploadStrategy::~ILogUploadStrategy |
( |
| ) |
|
|
inlinevirtual |
virtual std::size_t kaa::ILogUploadStrategy::getBatchSize |
( |
| ) |
|
|
pure virtual |
Retrieves the maximum size of the report pack that will be delivered in the single request to the Operations server.
- Returns
- The size of the log batch in bytes.
Implemented in kaa::DefaultLogUploadStrategy.
virtual std::size_t kaa::ILogUploadStrategy::getLogUploadCheckPeriod |
( |
| ) |
|
|
pure virtual |
virtual std::size_t kaa::ILogUploadStrategy::getMaxParallelUploads |
( |
| ) |
|
|
pure virtual |
virtual std::size_t kaa::ILogUploadStrategy::getRecordsBatchCount |
( |
| ) |
|
|
pure virtual |
virtual std::size_t kaa::ILogUploadStrategy::getTimeout |
( |
| ) |
|
|
pure virtual |
virtual std::size_t kaa::ILogUploadStrategy::getTimeoutCheckPeriod |
( |
| ) |
|
|
pure virtual |
virtual void kaa::ILogUploadStrategy::onFailure |
( |
ILogFailoverCommand & |
controller, |
|
|
LogDeliveryErrorCode |
code |
|
) |
| |
|
pure virtual |
Callback is used when the log delivery is failed.
- Parameters
-
[in] | controller | |
[in] | code | The reason code of the log delivery failure. |
- See also
- LogDeliveryErrorCode
Implemented in kaa::DefaultLogUploadStrategy.
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.
The documentation for this class was generated from the following file: