This is CASL core: all CASL services are live in ServerContext
Public Methods
-
void closeService(const char* ServiceName)
- close service
-
GradSoft::ThreadService* createSingleThreadService(int queueSize, GradSoft::SingleThreadReactive::Mode, long timeout)
- create one thread-service;
-
GradSoft::ThreadService* createThreadPoolService(int nThreads, int queueSize, GradSoft::ThreadPool::Mode mode, long timeout)
- create Thread Pool service;
-
void destroyThreadService(GradSoft::ThreadService* ts)
- destroy thread service
-
GradSoft::Logger& getLogger()
- get Logger
-
GradSoft::ProgOptions& getProgOptions()
- get ProgOptions
-
Service* getService(const char* serviceName)
- get service.
-
std::string getServiceProperty(const char* serviceName, const char* property)
- get Property for service x
-
DictionaryOfPointers<Service,false> & getServicesDictionary()
- receive dictionary of pointers to services
-
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
GradSoft::Logger& getLogger()
-
get Logger
GradSoft::ProgOptions& getProgOptions()
-
get ProgOptions
GradSoft::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.
GradSoft::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.
void destroyThreadService(GradSoft::ThreadService* ts)
-
destroy thread service
Service* getService(const char* serviceName)
-
get service.
(if it is not loaded, than load and initialize one).
void closeService(const char* ServiceName)
-
close service
std::string getServiceProperty(const char* serviceName, const char* property)
-
get Property for service x
DictionaryOfPointers<Service,false> & getServicesDictionary()
-
receive dictionary of pointers to services
bool 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++.