#include <omniEventsLog.h>
Collaboration diagram for OmniEvents::omniEventsLog:
Public Methods | |
omniEventsLog (int port, const char *logdir=NULL) | |
void | init (EventChannelFactory_i *&) |
int | getPort () |
void | checkpoint (void) |
void | output (ostream &os) |
Static Public Methods | |
void | persist () |
Private Methods | |
void | initializeFileNames (const char *logdir) |
Sets the values of 'active', 'backup' and 'checkpt' file names. More... | |
void | setFilename (char *&filename, const char *logdir, const char *sep, const char *logname, const char *hostname, const char *ext) |
Helper function that sets the value of the first parameter to the concatenation of all the subsequent parameters. More... | |
void | openOfstream (ofstream &s, const char *filename, int modeflags=0, int *fd=NULL) |
Helper method that opens an output file stream using whatever method is available. More... | |
Private Attributes | |
int | port |
ofstream | logfile |
int | firstTime |
char * | active |
char * | backup |
char * | checkpt |
omni_thread * | recorder |
EventChannelFactory_i * | factory |
int | checkpointNeeded |
omni_mutex | _lock |
Static Private Attributes | |
omniEventsLog * | theLog = NULL |
|
Definition at line 226 of file omniEventsLog.cc. References active, backup, file, firstTime, OEP_cfps::getPort(), initializeFileNames(), port, OmniEvents::timestamp::t(), yyin, and yyparse(). |
|
Definition at line 415 of file omniEventsLog.cc. References _lock, active, backup, checkpointNeeded, checkpt, DEFAULT_IDLE_TIME_BTW_CHKPT, logfile, openOfstream(), output(), and OmniEvents::timestamp::t(). |
|
Definition at line 409 of file omniEventsLog.cc. References port. |
|
Definition at line 330 of file omniEventsLog.cc. References _lock, active, checkpointNeeded, factory, firstTime, OEP_cfps::getChannels(), OEP_cfps::getPort(), logfile, OMNIEVENTS_LOGDIR_ENV_VAR, openOfstream(), output(), port, recorder, and OmniEvents::timestamp::t(). |
|
Sets the values of 'active', 'backup' and 'checkpt' file names. The files are placed in the log file directory, that is specified by:
Definition at line 589 of file omniEventsLog.cc. References active, backup, checkpt, gethostname(), MAXHOSTNAMELEN, OMNIEVENTS_LOGDIR_ENV_VAR, setFilename(), OmniEvents::timestamp::t(), and VMS_SEMICOLON. Referenced by omniEventsLog(). |
|
Helper method that opens an output file stream using whatever method is available. Available flags are:
Definition at line 674 of file omniEventsLog.cc. Referenced by checkpoint(), and init(). |
|
Definition at line 402 of file omniEventsLog.cc. References factory, and OmniEvents::EventChannelFactory_i::output(). Referenced by checkpoint(), init(), and persist(). |
|
Definition at line 389 of file omniEventsLog.cc. References _lock, checkpointNeeded, factory, logfile, and output(). |
|
Helper function that sets the value of the first parameter to the concatenation of all the subsequent parameters.
Definition at line 649 of file omniEventsLog.cc. References len. Referenced by initializeFileNames(). |
|
Definition at line 127 of file omniEventsLog.h. Referenced by checkpoint(), init(), and persist(). |
|
Definition at line 120 of file omniEventsLog.h. Referenced by checkpoint(), init(), initializeFileNames(), and omniEventsLog(). |
|
Definition at line 121 of file omniEventsLog.h. Referenced by checkpoint(), initializeFileNames(), and omniEventsLog(). |
|
Definition at line 125 of file omniEventsLog.h. Referenced by checkpoint(), init(), and persist(). |
|
Definition at line 122 of file omniEventsLog.h. Referenced by checkpoint(), and initializeFileNames(). |
|
Definition at line 124 of file omniEventsLog.h. |
|
Definition at line 119 of file omniEventsLog.h. Referenced by init(), and omniEventsLog(). |
|
Definition at line 118 of file omniEventsLog.h. Referenced by checkpoint(), init(), and persist(). |
|
Definition at line 117 of file omniEventsLog.h. Referenced by getPort(), init(), and omniEventsLog(). |
|
Definition at line 123 of file omniEventsLog.h. Referenced by init(). |
|
Definition at line 224 of file omniEventsLog.cc. |