Interface
caplin.core.log

LogStoreService

Constructor Summary

Attributes Name and Description
caplin.core.log.LogStoreService()

This represents an interface, and should not normally be constructed.

Method Summary

Attributes Name and Description
void clear()

Clears all stored log records.

Array getAllLogRecords()

Retrieves all stored log records.

caplin.core.log.LogRecord getLogRecord(Number n)

Retrieves a stored log record.

Number getSize()

Constructor Detail

caplin.core.log.LogStoreService()

This represents an interface, and should not normally be constructed.

Method Detail

void clear()

Clears all stored log records.

Array getAllLogRecords()

Retrieves all stored log records.

Returns
a caplin.core.log.LogRecord. Will not be null.

caplin.core.log.LogRecord getLogRecord(Number n)

Retrieves a stored log record.

Parameters
Number n the index of the log record to be retreived.
Returns
the nth oldest LogRecord (0 indexed) or undefined if n refers to a log record that hasn't been stored.

Number getSize()

Returns
The number of stored log records.