MemLogStorage Class Reference

Inherits from NSObject
Conforms to LogStorage
LogStorageStatus
Declared in MemLogStorage.h
MemLogStorage.m

– getConsumedVolume

Retrieves current log storage size used by added records.

- (int64_t)getConsumedVolume

Return Value

Amount of bytes consumed by added records.

Discussion

Retrieves current log storage size used by added records.

Declared In

LogStorage.h

– getRecordCount

Retrieves current number of added records.

- (int64_t)getRecordCount

Return Value

Number of records in a local storage.

Discussion

Retrieves current number of added records.

Declared In

LogStorage.h

– addLogRecord:

Persists a log record.

- (BucketInfo *)addLogRecord:(LogRecord *)record

Discussion

Persists a log record.

Declared In

LogStorage.h

– getNextBucket

Returns a log bucket or nil if there are no logs.

- (LogBucket *)getNextBucket

Discussion

Returns a log bucket or nil if there are no logs.

Declared In

LogStorage.h

– removeBucketWithId:

Removes already sent log records by its bucket id.

- (void)removeBucketWithId:(int32_t)bucketId

Parameters

bucketId

Unique id of sent bucket

Discussion

Removes already sent log records by its bucket id.

Use in case of a successful upload.

Declared In

LogStorage.h

– rollbackBucketWithId:

Notifies if sending of a log bucket with a specified id was failed.

- (void)rollbackBucketWithId:(int32_t)bucketId

Parameters

bucketId

Unique id of log bucket.

Discussion

Notifies if sending of a log bucket with a specified id was failed.

Declared In

LogStorage.h

– close

Closes log storage and releases all used resources (if any)

- (void)close

Discussion

Closes log storage and releases all used resources (if any)

Declared In

LogStorage.h

– getStatus

Returns log storage status.

- (id<LogStorageStatus>)getStatus

Discussion

Returns log storage status.

Declared In

LogStorage.h