[CPPSERV] [Documentation] [Download] [Contact] [Bug tracker] [News] [RSS Feed] [gitweb]
Definition at line 286 of file serverconfig.h.
container::ServerConfig::GlobalContext::GlobalContext | ( | ServerConfig & | cfg | ) |
Definition at line 181 of file serverconfig.cpp.
References container::ServerConfig::ParamRegistry< T >::getParamList(), container::ServerConfig::Context::getUnsetParams(), and paramregistry.
Here is the call graph for this function:
container::ServerConfig::GlobalContext::~GlobalContext | ( | ) |
Definition at line 450 of file serverconfig.cpp.
References globalNodes, m_acceptors, m_listener, and m_pool.
void container::ServerConfig::GlobalContext::registerParams | ( | ParamRegistry< ServerConfig::GlobalContext > & | ) | [static, private] |
Definition at line 280 of file serverconfig.cpp.
References container::ServerConfig::ParamRegistry< T >::registerParam(), container::ServerConfig::Context::setIgnore(), setListener(), setNumThreads(), setQueueDepth(), and setUriBase().
Here is the call graph for this function:
void container::ServerConfig::GlobalContext::registerContexts | ( | ContextRegistry & | ) | [static, private] |
Definition at line 264 of file serverconfig.cpp.
References container::ServerConfig::AppContext::contextCreator(), and container::ServerConfig::ContextRegistry::registerContext().
Here is the call graph for this function:
bool container::ServerConfig::GlobalContext::onSetParam | ( | const ConfigNode & | ) | [protected, virtual] |
Implements container::ServerConfig::Context.
Definition at line 230 of file serverconfig.cpp.
References paramregistry, and container::ServerConfig::ParamRegistry< T >::setParam().
Here is the call graph for this function:
virtual Context* container::ServerConfig::GlobalContext::getContext | ( | const ConfigNode & | node | ) | [inline, protected, virtual] |
node | Finds context for node with the name. Derived classes should override this function to search in their own context registries. |
Implements container::ServerConfig::Context.
Definition at line 330 of file serverconfig.h.
References contextregistry, and container::ServerConfig::ContextRegistry::getContext().
Here is the call graph for this function:
bool container::ServerConfig::GlobalContext::setListener | ( | const ServerConfig::ConfigNode & | node | ) | [protected] |
Creates and registers an acceptor. configNode should have protocol param (with value "unix" or "tcp"), and either host & port params for tcp, or path param for unix protocols.
Definition at line 480 of file serverconfig.cpp.
References container::ServerConfig::ConfigNode::getAttrs(), and m_acceptors.
Referenced by registerParams().
Here is the call graph for this function:
bool container::ServerConfig::GlobalContext::setNumThreads | ( | const ServerConfig::ConfigNode & | ) | [protected] |
Definition at line 528 of file serverconfig.cpp.
References container::ServerConfig::ConfigNode::getAttrs(), and m_nThreads.
Referenced by registerParams().
Here is the call graph for this function:
bool container::ServerConfig::GlobalContext::setQueueDepth | ( | const ServerConfig::ConfigNode & | ) | [protected] |
Definition at line 539 of file serverconfig.cpp.
References container::ServerConfig::ConfigNode::getAttrs(), and m_queueDepth.
Referenced by registerParams().
Here is the call graph for this function:
bool container::ServerConfig::GlobalContext::setUriBase | ( | const ServerConfig::ConfigNode & | ) | [protected] |
Definition at line 550 of file serverconfig.cpp.
References container::ServerConfig::ConfigNode::getAttrs(), and m_uribase.
Referenced by registerParams().
Here is the call graph for this function:
bool container::ServerConfig::GlobalContext::onPostComplete | ( | ) | [protected, virtual] |
called after child contexts' complete()
Reimplemented from container::ServerConfig::Context.
Definition at line 568 of file serverconfig.cpp.
References m_acceptors, m_listener, m_nThreads, m_pool, and m_queueDepth.
bool container::ServerConfig::GlobalContext::setGlobalParam | ( | const std::string & | , | |
const std::string & | ||||
) |
Definition at line 443 of file serverconfig.cpp.
References globalNodes, and container::ServerConfig::Context::setParam().
Referenced by container::ServerConfig::setGlobalParam().
Here is the call graph for this function:
std::string container::ServerConfig::GlobalContext::getGlobalParam | ( | const std::string & | type | ) |
Definition at line 469 of file serverconfig.cpp.
References globals.
Referenced by container::ServerConfig::getGlobalParam().
RequestListener* container::ServerConfig::GlobalContext::getListener | ( | ) | [inline] |
Definition at line 342 of file serverconfig.h.
References m_listener.
Referenced by container::ServerConfig::getListener().
std::string container::ServerConfig::GlobalContext::getUriBase | ( | ) | const [inline] |
void container::ServerConfig::GlobalContext::registerApp | ( | const std::string & | name, | |
App * | app | |||
) | [inline] |
Definition at line 344 of file serverconfig.h.
References m_apps.
Referenced by container::ServerConfig::AppContext::onPreComplete().
App* container::ServerConfig::GlobalContext::getApp | ( | const std::string & | name | ) | [inline] |
Definition at line 345 of file serverconfig.h.
References m_apps.
Referenced by container::ServerConfig::getApp().
std::list<GlobalConfigNode*> container::ServerConfig::GlobalContext::globalNodes [private] |
Definition at line 303 of file serverconfig.h.
Referenced by setGlobalParam(), and ~GlobalContext().
std::map<std::string, std::string> container::ServerConfig::GlobalContext::globals [private] |
std::list<RequestListener::Acceptor*> container::ServerConfig::GlobalContext::m_acceptors [private] |
Definition at line 305 of file serverconfig.h.
Referenced by onPostComplete(), setListener(), and ~GlobalContext().
std::map<std::string, App*> container::ServerConfig::GlobalContext::m_apps [private] |
std::string container::ServerConfig::GlobalContext::m_uribase [private] |
This variable holds number of threads processing task queue. Essentially - maximum number of simulteniously processed connections. Currently it is also used to initialize request queue depth
Definition at line 315 of file serverconfig.h.
Referenced by onPostComplete(), and setNumThreads().
This variable holds maximum number of connections that can be held in queue for processing. Normally this should not be larger then number of threads.
Definition at line 322 of file serverconfig.h.
Referenced by onPostComplete(), and setQueueDepth().
Definition at line 324 of file serverconfig.h.
Referenced by getListener(), onPostComplete(), container::DoAccept::operator()(), and ~GlobalContext().
Definition at line 325 of file serverconfig.h.
Referenced by onPostComplete(), and ~GlobalContext().