DefaultLogUploadStrategy Class Reference
Inherits from | NSObject |
---|---|
Conforms to | LogUploadStrategy |
Declared in | DefaultLogUploadStrategy.h DefaultLogUploadStrategy.m |
– isUploadNeededForStorageStatus:
Retrieves log upload decision based on current storage status and defined upload configuration.
- (LogUploadStrategyDecision)isUploadNeededForStorageStatus:(id<LogStorageStatus>)status
Return Value
Upload decision.
Discussion
Retrieves log upload decision based on current storage status and defined upload configuration.
Declared In
LogUploadStrategy.h
– getBatchSize
Retrieves maximum size of the report pack that will be delivered in single request to server.
- (int64_t)getBatchSize
Return Value
Size of the batch
Discussion
Retrieves maximum size of the report pack that will be delivered in single request to server.
Declared In
LogUploadStrategy.h
– getBatchCount
Retrieves maximum count of the records in report pack that will be delivered in single request to server.
- (int32_t)getBatchCount
Return Value
Size of the batch
Discussion
Retrieves maximum count of the records in report pack that will be delivered in single request to server.
Declared In
LogUploadStrategy.h
– getTimeout
Maximum time to wait log delivery response.
- (int32_t)getTimeout
Return Value
Time in seconds.
Discussion
Maximum time to wait log delivery response.
Declared In
LogUploadStrategy.h
– getUploadCheckPeriod
If there are records in storage we need to periodically check isUploadNeeded method. This is useful if client want to upload logs on certain timing conditions instead of log storage checks
- (int32_t)getUploadCheckPeriod
Return Value
Time in seconds
Discussion
If there are records in storage we need to periodically check isUploadNeeded method. This is useful if client want to upload logs on certain timing conditions instead of log storage checks
Declared In
LogUploadStrategy.h
– getMaxParallelUploads
Number of maximum parallel uploads.
- (int64_t)getMaxParallelUploads
Return Value
Number of maximum parallel uploads.
Declared In
LogUploadStrategy.h
– onTimeoutForController:
Handles timeout of log delivery
- (void)onTimeoutForController:(id<LogFailoverCommand>)controller
Discussion
Handles timeout of log delivery
Declared In
LogUploadStrategy.h
– onFailureForController:errorCode:
Handles failure of log delivery
- (void)onFailureForController:(id<LogFailoverCommand>)controller errorCode:(LogDeliveryErrorCode)code
Discussion
Handles failure of log delivery
Declared In
LogUploadStrategy.h