CARMA C++
|
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... | |
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.
carma::dbms::LogIndexer::LogIndexer | ( | ) |
Constructor.
the | index file to read from and write to. |
|
virtual |
The destructor.