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

This class is responsible for opening/closing the syslog mmap file. More...

#include <carma/dbms/SyslogMMAPFile.h>

Public Member Functions

void atomicUpdate (SyslogMessage *aSyslogMessage)
 
long long computeStateID (const char *)
 
std::string computeVersionHash ()
 
SyslogMessage * getCurrentMessage ()
 
long getCurrentPos ()
 
size_t getHeaderSize ()
 
SyslogMessage * getLastMessage ()
 
long getLastPos ()
 
size_t getMapSize ()
 
long long getMapStateID ()
 
SyslogMessage * getMessageAt (long pos)
 
SyslogMessage * getMessageAtAndUpdateNext (long &pos)
 
std::string getMyID ()
 
long getNearestAgedPos (double mjd)
 
long getNumMessages ()
 
long getPosLoc (long pos)
 
void * getPtr ()
 
int getSize ()
 
size_t getSyslogMedianSize ()
 
std::string getVersionHash ()
 
size_t getVersionIDSize ()
 
bool isConsistent ()
 
double peekMJD (long pos)
 
void setMapStateID (long long val)
 
 SyslogMMAPFile (const std::string &mmapFileName, bool writer=false)
 Constructor. More...
 
std::string toString ()
 
std::string toVerboseString ()
 
 ~SyslogMMAPFile ()
 The destructor. More...
 

Static Public Attributes

static const long MAX_MESSAGES = 300000
 
static const size_t MMAP_SIZE = 50000300
 
static const char * MYID
 
static const size_t SYSLOGMEDIAN_SIZE = 165
 
static const size_t VERSIONID_SIZE = 100
 

Detailed Description

This class is responsible for opening/closing the syslog mmap file.

This file is how various processes converge on the local ACC cache of syslog messages that come through the syslog.fifo/ipq

Definition at line 31 of file SyslogMMAPFile.h.

Constructor & Destructor Documentation

carma::dbms::SyslogMMAPFile::SyslogMMAPFile ( const std::string &  mmapFileName,
bool  writer = false 
)

Constructor.

Parameters
mmapFileNamethe mmap file to read from and write to.
writeris this instantiation a writer to the file default false.
carma::dbms::SyslogMMAPFile::~SyslogMMAPFile ( )

The destructor.


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