#include <cservdemon.h>
Public Member Functions | |
CServDemon () | |
~CServDemon () | |
void | parseOptions (int argc, char **argv) |
void | start () |
Private Member Functions | |
void | run () |
void | setConfigPath (const char *) |
Static Private Member Functions | |
static void | handleSig11 (int signum, siginfo_t *info, void *par) |
static void | handleTermSig (int signum, siginfo_t *info, void *par) |
static void | supervisorTerm (int signum, siginfo_t *info, void *par) |
static void | help () |
Private Attributes | |
serverconfig::XMLServerConfig | m_conf |
std::string | m_cinName |
std::string | m_coutName |
std::string | m_cerrName |
bool | m_detach |
int | m_pidF |
std::string | m_pidFPath |
bool | m_lockedPidFile |
Definition at line 33 of file cservdemon.h.
container::CServDemon::CServDemon | ( | ) |
Definition at line 40 of file cservdemon.cpp.
container::CServDemon::~CServDemon | ( | ) |
void container::CServDemon::handleSig11 | ( | int | signum, | |
siginfo_t * | info, | |||
void * | par | |||
) | [static, private] |
signum | Signal number | |
info | info struct | |
par | param |
Definition at line 145 of file cservdemon.cpp.
void container::CServDemon::handleTermSig | ( | int | signum, | |
siginfo_t * | info, | |||
void * | par | |||
) | [static, private] |
This function handles termination signales (SIGTERM, SIGINT), by telling dispatcher to stop running.
FIXME: stop the daemon
Definition at line 156 of file cservdemon.cpp.
Referenced by start().
void container::CServDemon::help | ( | ) | [static, private] |
Definition at line 175 of file cservdemon.cpp.
References container::version().
Referenced by parseOptions().
void container::CServDemon::parseOptions | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 98 of file cservdemon.cpp.
References help(), m_cerrName, m_conf, m_coutName, m_detach, m_pidFPath, setConfigPath(), container::serverconfig::ServerConfig::setGlobalParam(), and container::version().
Referenced by main().
void container::CServDemon::run | ( | ) | [private] |
Definition at line 74 of file cservdemon.cpp.
References container::RequestListener::acceptRequests(), container::serverconfig::ServerConfig::getListener(), servlet::Traceable::getMsg(), container::serverconfig::XMLServerConfig::load(), m_conf, servlet::Traceable::printStackTrace(), and container::serverconfig::ServerConfig::processConfig().
Referenced by start().
void container::CServDemon::setConfigPath | ( | const char * | path | ) | [private] |
Definition at line 192 of file cservdemon.cpp.
References m_conf, container::serverconfig::ServerConfig::setGlobalParam(), and container::serverconfig::XMLServerConfig::setPath().
Referenced by parseOptions().
void container::CServDemon::start | ( | ) |
Definition at line 212 of file cservdemon.cpp.
References handleTermSig(), m_cerrName, m_cinName, m_coutName, m_detach, m_lockedPidFile, m_pidF, m_pidFPath, run(), and supervisorTerm().
Referenced by main().
void container::CServDemon::supervisorTerm | ( | int | signum, | |
siginfo_t * | info, | |||
void * | par | |||
) | [static, private] |
This function handles termination signales (SIGTERM, SIGINT), by telling dispatcher to stop running.
Definition at line 167 of file cservdemon.cpp.
Referenced by start().
std::string container::CServDemon::m_cerrName [private] |
std::string container::CServDemon::m_cinName [private] |
Definition at line 48 of file cservdemon.h.
Referenced by parseOptions(), run(), and setConfigPath().
std::string container::CServDemon::m_coutName [private] |
bool container::CServDemon::m_detach [private] |
bool container::CServDemon::m_lockedPidFile [private] |
int container::CServDemon::m_pidF [private] |
std::string container::CServDemon::m_pidFPath [private] |
Definition at line 52 of file cservdemon.h.
Referenced by parseOptions(), start(), and ~CServDemon().