#include <modulebase.h>
Inheritance diagram for TModuleBase:
Public Member Functions | |
virtual void | StartThreadFunc (void *p_argument) |
TModuleBase (char *p_programname, char *p_configfilename=NULL) | |
~TModuleBase () | |
int | Run () |
Protected Member Functions | |
HANDLE_STATUS | HandleConfigLine (ConfigSource *p_parser) |
void | CheckConfig () |
void | SendStatus (WORM_MSGTYPE_ID p_type, short p_ierr=0, const char *p_text=NULL) |
virtual const char * | GetDefaultConfigFile () const=0 |
virtual void | Heartbeat () |
virtual bool | PrepareToRun () |
virtual bool | CheckForFatal () |
virtual WORM_STATUS_CODE | MainThreadActions ()=0 |
virtual bool | FinishedRunning () |
Protected Attributes | |
volatile bool | Running |
WORM_LOGGING_LEVEL | LoggingLevel |
TGlobalUtils * | MyGlobalUtils |
WORM_MSGTYPE_ID | TYPE_ERROR |
WORM_MSGTYPE_ID | TYPE_HEARTBEAT |
GEN_FILENAME | ConfigFileName |
int | LoopSleepMS |
WORM_RING_ID | CommandRingKey |
TRingWriter * | CommandRing |
THeartbeatMessage * | HeartbeatMsg |
TErrorMessage * | ErrorMsg |
long | LastBeat |
|
Definition at line 27 of file modulebase.cpp. References CommandRing, CommandRingKey, DEF_LOOP_SLEEP_MS, ErrorMsg, EW_CONFIG_DIR, TGlobalUtils::GetEnvironmentValue(), HeartbeatMsg, LastBeat, TLogger::Logit(), LoopSleepMS, MyGlobalUtils, Running, WORM_CONFIG_DIR, and WORM_RING_INVALID. |
|
Definition at line 129 of file modulebase.cpp. References CommandRing, ErrorMsg, HeartbeatMsg, and MyGlobalUtils. |
|
Reimplemented from TConfigurable. Definition at line 213 of file modulebase.cpp. References CommandRingKey, TConfigurable::ConfigState, TGlobalUtils::GetHeartbeatInt(), ConfigSource::INVALID_INT, TConfigurable::IsReady(), TLogger::Logit(), TGlobalUtils::LookupMessageTypeId(), LoopSleepMS, MyGlobalUtils, TYPE_ERROR, TYPE_HEARTBEAT, WORM_MSGTYPE_INVALID, WORM_RING_INVALID, and WORM_STAT_BADSTATE. |
|
Definition at line 208 of file modulebase.h. Referenced by Run(). |
|
Definition at line 232 of file modulebase.h. Referenced by Run(). |
|
Referenced by Run(). |
|
Reimplemented from TConfigurable. Definition at line 153 of file modulebase.cpp. References CommandRingKey, DEF_LOOP_SLEEP_MS, ConfigSource::GetCurrentLine(), HANDLE_STATUS, TGlobalUtils::HandleConfigLine(), HANDLER_INVALID, HANDLER_UNUSED, HANDLER_USED, ConfigSource::Int(), ConfigSource::INVALID_INT, ConfigSource::Its(), TLogger::Logit(), TGlobalUtils::LookupRingKey(), LoopSleepMS, MyGlobalUtils, ConfigSource::String(), and WORM_RING_INVALID. Referenced by Run(). |
|
Definition at line 341 of file modulebase.cpp. References TGlobalUtils::GetHeartbeatInt(), LastBeat, and SendStatus(). Referenced by Run(). |
|
Referenced by Run(). |
|
Definition at line 196 of file modulebase.h. References TGlobalUtils::GetLoggingLevel(). Referenced by Run(). |
|
|
Definition at line 275 of file modulebase.cpp. References CommandRing, ErrorMsg, HeartbeatMsg, TLogger::Logit(), Running, TYPE_ERROR, TYPE_HEARTBEAT, and WORM_STAT_SUCCESS. Referenced by Heartbeat(). |
|
Implements ThreadableObject. Definition at line 254 of file modulebase.h. |
|
Definition at line 148 of file modulebase.h. Referenced by Run(), SendStatus(), TModuleBase(), and ~TModuleBase(). |
|
Definition at line 147 of file modulebase.h. Referenced by CheckConfig(), HandleConfigLine(), and TModuleBase(). |
|
Definition at line 140 of file modulebase.h. Referenced by Run(). |
|
Definition at line 170 of file modulebase.h. Referenced by Run(), SendStatus(), TModuleBase(), and ~TModuleBase(). |
|
Definition at line 169 of file modulebase.h. Referenced by Run(), SendStatus(), TModuleBase(), and ~TModuleBase(). |
|
Definition at line 184 of file modulebase.h. Referenced by Heartbeat(), and TModuleBase(). |
|
Definition at line 132 of file modulebase.h. Referenced by Run(). |
|
Definition at line 143 of file modulebase.h. Referenced by CheckConfig(), HandleConfigLine(), and TModuleBase(). |
|
Definition at line 134 of file modulebase.h. Referenced by CheckConfig(), HandleConfigLine(), TModuleBase(), and ~TModuleBase(). |
|
Definition at line 130 of file modulebase.h. Referenced by Run(), SendStatus(), and TModuleBase(). |
|
Definition at line 137 of file modulebase.h. Referenced by CheckConfig(), and SendStatus(). |
|
Definition at line 137 of file modulebase.h. Referenced by CheckConfig(), and SendStatus(). |