LogManagerFactory Class

(LogManager::LogManagerFactory)

The LogManagerFactory creates readers and writers supporting CDPCompactDatastore format. More...

Header: #include <LogManagerFactory>

Public Functions

virtual ~LogManagerFactory()
virtual LogReader *CreateReader(const ConnectionInfo &connectionInfo)
virtual LogReader *CreateReader(const std::vector<LogReader *> &readers)

Detailed Description

The LogManagerFactory creates readers and writers supporting CDPCompactDatastore format.

Methods throw std::exception to indicate failures.

Member Function Documentation

[virtual] LogManagerFactory::~LogManagerFactory()

Destroys the instance of LogManagerFactory. The destructor is virtual.

[virtual] LogReader *LogManagerFactory::CreateReader(const ConnectionInfo &connectionInfo)

Creates a reader that allows to access data logged by CDPCompactDatastore.

The connectionInfo must specify datastore name. If the datastore is a composite datastore split into multiple files (e.g. 'log.db', 'log0.db', 'log1.db'...), then it is sufficient to only specify the main file (in this example 'log.db').

Throws an LogManager::Exceptions::UnsupportedDBType exception if the database is not compatible with this reader or an std::exception to indicate other failures.

[virtual] LogReader *LogManagerFactory::CreateReader(const std::vector<LogReader *> &readers)

Used to read from multiple logs where readers in the beginning of the list contain most recent data (with higher resolution) and in the end lower resolution long term log.

Can be used with the CDPCompactDatastore KeepHistory functionality. The parameter readers takes ownership of the pointers. Throws an std::exception if the list is empty.

© CDP Technologies AS - All rights reserved