class CASL::ServerContext

This is CASL core: all CASL services are live in ServerContext

Public Methods

[more]void closeService(const char* ServiceName)
close service
[more]GradSoft::ThreadService* createSingleThreadService(int queueSize, GradSoft::SingleThreadReactive::Mode, long timeout)
create one thread-service;
[more]GradSoft::ThreadService* createThreadPoolService(int nThreads, int queueSize, GradSoft::ThreadPool::Mode mode, long timeout)
create Thread Pool service;
[more]void destroyThreadService(GradSoft::ThreadService* ts)
destroy thread service
[more]GradSoft::Logger& getLogger()
get Logger
[more]GradSoft::ProgOptions& getProgOptions()
get ProgOptions
[more]Service* getService(const char* serviceName)
get service.
[more]std::string getServiceProperty(const char* serviceName, const char* property)
get Property for service x
[more]DictionaryOfPointers<Service,false> & getServicesDictionary()
receive dictionary of pointers to services
[more]bool serviceIsLoaded(const std::string& serviceName)
is service with name 'Name' is loaded ?


Documentation

This is CASL core: all CASL services are live in ServerContext
oGradSoft::Logger& getLogger()
get Logger

oGradSoft::ProgOptions& getProgOptions()
get ProgOptions

oGradSoft::ThreadService* createSingleThreadService(int queueSize, GradSoft::SingleThreadReactive::Mode, long timeout)
create one thread-service;
Parameters:
queueSize - - size of input queue
mode - - mode, one of \begin{itemize} \item SingleThreadReactive::Blocked \item SingleThreadReactive::Checked \item SingleThreadReactive::CheckedWithTimeout \end{itemize}
timeout - - timeout (place role if we use CheckedWithTimeout mode)
Returns:
service.

oGradSoft::ThreadService* createThreadPoolService(int nThreads, int queueSize, GradSoft::ThreadPool::Mode mode, long timeout)
create Thread Pool service;
Parameters:
nThreads - - number of input threads
queueSize - - size of input queue
mode - - mode, one of \begin{itemize} \item ThreadPool::Blocked \item ThreadPool::Checked \item ThreadPool::CheckedWithTimeout \end{itemize}
timeout - - timeout (place role if we use CheckedWithTimeout mode)
Returns:
just-created service.

ovoid destroyThreadService(GradSoft::ThreadService* ts)
destroy thread service

oService* getService(const char* serviceName)
get service. (if it is not loaded, than load and initialize one).

ovoid closeService(const char* ServiceName)
close service

ostd::string getServiceProperty(const char* serviceName, const char* property)
get Property for service x

oDictionaryOfPointers<Service,false> & getServicesDictionary()
receive dictionary of pointers to services

obool serviceIsLoaded(const std::string& serviceName)
is service with name 'Name' is loaded ?


This class has no child classes.
Friends:
class RunServiceThread
class ServiceStarter
class ServerContextConfigHandler
class CASLSingleton

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.