#include <globalcontext.h>
Definition at line 48 of file globalcontext.h.
container::serverconfig::GlobalContext::GlobalContext | ( | ServerConfig & | cfg | ) |
Definition at line 27 of file globalcontext.cpp.
References container::serverconfig::ParamRegistry< T >::getParamList(), container::serverconfig::Context::getUnsetParams(), and m_paramregistry.
container::serverconfig::GlobalContext::~GlobalContext | ( | ) |
Definition at line 37 of file globalcontext.cpp.
References m_acceptors, m_globalNodes, m_listener, and m_pool.
AppContext* container::serverconfig::GlobalContext::getApp | ( | const std::string & | name | ) | [inline] |
Definition at line 102 of file globalcontext.h.
References m_apps.
Referenced by container::serverconfig::ServerConfig::getApp().
virtual Context* container::serverconfig::GlobalContext::getContext | ( | const ConfigNode & | node | ) | [inline, protected, virtual] |
Implements container::serverconfig::Context.
Definition at line 90 of file globalcontext.h.
References container::serverconfig::ContextRegistry::getContext(), and m_contextregistry.
container::RequestListener* container::serverconfig::GlobalContext::getListener | ( | ) | [inline] |
Definition at line 100 of file globalcontext.h.
References m_listener.
Referenced by container::serverconfig::ServerConfig::getListener().
bool container::serverconfig::GlobalContext::onPostComplete | ( | ) | [protected, virtual] |
called after child contexts' complete()
Reimplemented from container::serverconfig::Context.
Definition at line 185 of file globalcontext.cpp.
References m_acceptors, m_listener, m_nThreads, m_pool, and m_queueDepth.
bool container::serverconfig::GlobalContext::onSetParam | ( | const ConfigNode & | node | ) | [protected, virtual] |
Implements container::serverconfig::Context.
Definition at line 58 of file globalcontext.cpp.
References m_paramregistry, and container::serverconfig::ParamRegistry< T >::setParam().
void container::serverconfig::GlobalContext::registerApp | ( | const std::string & | name, | |
AppContext * | app | |||
) | [inline] |
Definition at line 101 of file globalcontext.h.
References m_apps.
Referenced by container::serverconfig::AppContext::onPreComplete().
void container::serverconfig::GlobalContext::registerContexts | ( | ContextRegistry & | reg | ) | [static, private] |
Definition at line 53 of file globalcontext.cpp.
References container::serverconfig::AppContext::contextCreator(), container::serverconfig::PARAM_SINGLE_OF_NAME, and container::serverconfig::ContextRegistry::registerContext().
void container::serverconfig::GlobalContext::registerParams | ( | ParamRegistry< GlobalContext > & | reg | ) | [static, private] |
Definition at line 63 of file globalcontext.cpp.
References container::serverconfig::PARAM_NONE, container::serverconfig::PARAM_REQUIRED, container::serverconfig::PARAM_SINGLE_OF_TYPE, container::serverconfig::ParamRegistry< T >::registerParam(), container::serverconfig::Context::setIgnore(), setListener(), setNumThreads(), and setQueueDepth().
bool container::serverconfig::GlobalContext::setGlobalParam | ( | const std::string & | type, | |
const std::string & | value | |||
) |
Definition at line 76 of file globalcontext.cpp.
References m_globalNodes, and container::serverconfig::Context::setParam().
Referenced by container::serverconfig::ServerConfig::setGlobalParam().
bool container::serverconfig::GlobalContext::setListener | ( | const ConfigNode & | node | ) | [protected] |
Definition at line 89 of file globalcontext.cpp.
References container::serverconfig::ConfigNode::getAttrs(), m_acceptors, and servlet::Traceable::printStackTrace().
Referenced by registerParams().
bool container::serverconfig::GlobalContext::setNumThreads | ( | const ConfigNode & | node | ) | [protected] |
Definition at line 154 of file globalcontext.cpp.
References container::serverconfig::ConfigNode::getAttrs(), and m_nThreads.
Referenced by registerParams().
bool container::serverconfig::GlobalContext::setQueueDepth | ( | const ConfigNode & | node | ) | [protected] |
Definition at line 165 of file globalcontext.cpp.
References container::serverconfig::ConfigNode::getAttrs(), and m_queueDepth.
Referenced by registerParams().
std::list<container::RequestListener::Acceptor*> container::serverconfig::GlobalContext::m_acceptors [private] |
Definition at line 66 of file globalcontext.h.
Referenced by onPostComplete(), setListener(), and ~GlobalContext().
std::map<std::string, AppContext*> container::serverconfig::GlobalContext::m_apps [private] |
ContextRegistry container::serverconfig::GlobalContext::m_contextregistry [static, private] |
std::list<GlobalConfigNode*> container::serverconfig::GlobalContext::m_globalNodes [private] |
Definition at line 65 of file globalcontext.h.
Referenced by setGlobalParam(), and ~GlobalContext().
Definition at line 84 of file globalcontext.h.
Referenced by getListener(), onPostComplete(), and ~GlobalContext().
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 75 of file globalcontext.h.
Referenced by onPostComplete(), and setNumThreads().
ParamRegistry< GlobalContext > container::serverconfig::GlobalContext::m_paramregistry [static, private] |
sptk::CThreadPool* container::serverconfig::GlobalContext::m_pool [private] |
Definition at line 85 of file globalcontext.h.
Referenced by onPostComplete(), and ~GlobalContext().
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 82 of file globalcontext.h.
Referenced by onPostComplete(), and setQueueDepth().