10 #ifndef CARMA_DBMS_SYSLOGLISTENERMANAGER_H
11 #define CARMA_DBMS_SYSLOGLISTENERMANAGER_H
19 #include "log4cpp/Category.hh"
23 #include "carma/util/PthreadMutex.h"
24 #include "carma/util/PthreadMutex.h"
25 #include "carma/util/PthreadCond.h"
27 #include "carma/dbms/SyslogListenerThread.h"
33 class SyslogListenerManager
36 SyslogListenerManager ( std::string pipeFileName );
38 static void thread( SyslogListenerManager &This );
42 double getStartTime() {
return _timeOfStart; };
43 long long getMessageCount() {
return _messageCountFromStartOfRun; };
44 long long getTotalBytes() {
return _totalBytesReceived; };
47 std::string *waitForNextMessage();
50 log4cpp::Category &_log;
51 std::vector<std::string> _pipeFileNames;
55 long long _messageCountFromStartOfRun;
56 long long _totalBytesReceived;
57 SyslogListenerManager *_myThread;
60 std::map< std::string, SyslogListenerThread * > _listeners;
62 static std::queue<std::string * > *_rawBufferQueue;
72 #endif // CARMA_DBMS_SYSLOGLISTENERMANAGER_H
A simple wrapper class that makes use of ::pthread_cond_t easier in a C++ world.
A simple wrapper class that makes use of ::pthread_mutex_t easier in a C++ world. ...