Go to the documentation of this file.
101 #ifndef _OMNIEVENTSLOG_H_
102 #define _OMNIEVENTSLOG_H_
112 # include <iostream.h>
113 # include <fstream.h>
116 #ifdef HAVE_STD_IOSTREAM
121 # include <omniORB3/CORBA.h>
125 # include <omniORB4/CORBA.h>
130 class EventChannelFactory_i;
133 #ifndef OMNIEVENTS_LOGDIR_ENV_VAR
134 # define OMNIEVENTS_LOGDIR_ENV_VAR "OMNIEVENTS_LOGDIR"
144 static bool exists() {
return NULL!=omniEventsLog::theLog; }
149 bool fileExists(
const char* filename)
const;
157 PersistNode* bootstrap(
int port,
const char* endPointNoListen);
173 virtual void runWorker();
182 void checkpoint(
void);
184 virtual void output(ostream& os);
190 virtual void initializeFileNames(
const char* logdir);
196 const char* hostname,
199 virtual void openOfstream(
201 const char* filename,
227 priority_t priority=PRIORITY_NORMAL
229 void* run_undetached(
void *);
252 omniEventsLog::theLog->_checkpointNeeded=
true;
const char * activeFilename() const
static omniEventsLog * theLog
Obtains an output stream to the active persistancy logfile, and locks it for exclusive access.
omni_thread * _workerThread
In charge of checkpoints.
static bool exists()
Library code may create Event Service objects without the need for persistency.
EventChannelFactory_i * factory()
accessor method
char * _checkpointFilename
EventChannelFactory_i * _factory
const char * backupFilename() const