CARMA C++
carma::dbms::LogIndexer Class Reference

This class is responsible for keeping the history of what syslog2Db has already processed and initializing LogProcessors so that they do not reprocessed previously processed log messages. More...

#include <carma/dbms/LogIndexer.h>

Public Member Functions

 LogIndexer ()
 Constructor. More...
 
virtual ~LogIndexer ()
 The destructor. More...
 

Detailed Description

This class is responsible for keeping the history of what syslog2Db has already processed and initializing LogProcessors so that they do not reprocessed previously processed log messages.

It reads and writes a file in /var/log/carma that contains file name, last frame count, last raw line processed for each log file in /var/log/carma. Thus if syslog2b dies and is restarted, old data are not reprocessed. The index format is

 filename =  number of lines processed so far
            : framecount of first line 
            : framcount of last line processed 

Definition at line 39 of file LogIndexer.h.

Constructor & Destructor Documentation

carma::dbms::LogIndexer::LogIndexer ( )

Constructor.

Parameters
theindex file to read from and write to.
virtual carma::dbms::LogIndexer::~LogIndexer ( )
virtual

The destructor.


The documentation for this class was generated from the following file: